LONGINT ARRAY FROM SELECTION
LONGINT ARRAY FROM SELECTION ( aTable ; recordArray {; selection} )
Parameter | Type | Description | |
---|---|---|---|
aTable | Table | → | Table of the current selection |
recordArray | Array integer | ← | Array of record numbers |
selection | Text | → | Name of the named selection or the current selection if this parameter is omitted |
Description
The LONGINT ARRAY FROM SELECTION command fills the recordArray array with the (absolute) record numbers that are in selection.
If you do not pass the selection parameter, the command will use the current selection of aTable.
Note: The array element number 0 is initialized to -1.
Example
You want to retrieve the numbers of the records in the current selection:
ARRAY LONGINT($_arrRecNum;0) //mandatory for compiled mode
LONGINT ARRAY FROM SELECTION([Clients];$_arrRecNum)