Description

Retrieves Linear Hash Information for a specific LH table.

Syntax

info = Get_LH_Info (tablename)

Parameters

The function has the following parameters:

ParameterDescription
tablenameThe linear hash tablename.

Returns

ValueDescription
Number of Frames (Modulo)The number of frames in the table.
Frame SizeThe frame size used by the table.
PercentThe current percentage of the primary frame.
Number of RecordsThe number of records (rows) in the table.
SizelockThe sizelock value of the table. A value of 0 allows for expansion and contraction of the file, a value of 1 allows for the expansion only and a sizelock of 2 prohibits both expansion and contraction.
Size ThresholdThe threshold percentage for each frame in the table.
Operating System FilenameThe OS path and filename of the LH table.
File Version

The designation of the driver which created the file.

ValueDescription
0Old AREV systems.
1Non-Universal Drvier Network Products. (NT Service 1.5, NLM 5.0, etc.)
2The Universal Driver.

Example

declare function Get_LH_Info
lhInfo = Get_LH_Info("CUSTOMERS")
 
/* This should return:
lhInfo<1> should be "3"
lhInfo<2> should be "1024"
lhInfo<3> should be "76"
lhInfo<4> should be "20"
lhInfo<5> should be "0"
lhInfo<6> should be "80"
lhInfo<7> should be "EXAMPLES\REV53002.LK"
lhInfo<8> should be "2"
*/
  • No labels

1 Comment

  1. The above description of what is returned is how it appears in the Programmer's Reference Guide. The documentation does not make it clear that each value is a different attribute (@FM delimited) in an array variable that is returned. The Example code makes this a little clearer.