|
|
|
|
|
- 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. Note The position given is approximate for performance reasons. The position is calculated according to the position in the index.
HSeek(Client, Nom, "Dupont")
IF HFound(Client) = True THEN
Pourcentage is int = HGetCurrentPosition(Client, Nom)/10
Info("Le premier Dupont est à " + Pourcentage + "% de Client sur la clé Nom")
END
Syntax
<Result> = HGetCurrentPosition([<Data file> [, <Item>] [, <Accuracy>]])
<Result>: entier - 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"). <Accuracy>: Optional integer Defines the precision with which the position is evaluated. Caution: The higher the precision, the longer the position evaluation time. | | hPrecisionHigh | High precision. | hPrecisionLow | Low precision. | hPrecisionMedium (default value) | Medium precision. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|