|
|
|
|
|
- Position in relation to a key item or to a non-key item
- Position in a filtered iteration
HGetCurrentPosition (Function) In french: HPositionCourante
Not available with this kind of connection
Returns the approximate position of current record in the data file. This position is given in relation to a specific item. Remark: The position is given approximately for performance reasons. The position is calculated according to the position in the index.
HSeek(Customer, Name, "Smith") IF HFound(Customer) = True THEN Percentage is int = HGetCurrentPosition(Customer, Name)/10 Info("The first Smith is at " + Percentage + "% of Customer on the Name key") END
Syntax
<Result> = HGetCurrentPosition([<Data file> [, <Item>] [, <Precision>]])
<Result>: Integer - Approximate current position, plotted to the [1;1000] interval.
- -1 if an error occurs (empty data file, filter returning no result, etc.). HErrorInfo returns more details about the problem.
<Data file>: Optional character string Name of the data file used. If this name is not specified, HGetCurrentPosition will use the last data file used by the last HFSQL function (function starting with "H"). <Item>: Optional character string Name of the item used. If this name is not specified, HGetCurrentPosition will use the last item used by the last HFSQL management function (function starting with "H"). <Precision>: Optional integer Defines the precision with which the position is evaluated. Caution: The higher the precision, the longer it takes to evaluate the position in the file. | | hPrecisionHigh | High precision. | hPrecisionLow | Low precision. | hPrecisionMedium (default value) | Medium precision. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|