|
|
|
|
|
- Position in relation to a key item or to a non-key item
- Position in a filtered iteration
<Source>.GetCurrentPosition (Function) In french: <Source>.PositionCourante
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.
Customer.Seek(Name, "Smith") IF Customer.Found() = True THEN Percentage is int = Customer.GetCurrentPosition(Name)/10 Info("The first Smith is at " + Percentage + "% of Customer on the Name key") END
Syntax
<Result> = <Source>.CurrentPosition([<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.
<Source>: Type corresponding to the specified source Name of the data file used. <Item>: Optional character string Name of the item used. If this name is not specified, <Source>.GetCurrentPosition 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|