Skip to main content
Version: 21 R4 BETA

LONGINT ARRAY FROM SELECTION

LONGINT ARRAY FROM SELECTION ( aTable : Table ; recordArray : Integer array {; selection : Text} )

ParameterTypeDescription
aTableTable→Table of the current selection
recordArrayInteger array←Array of record numbers
selectionText→Name of the named selection or the current selection if this parameter is omitted
History
ReleaseChanges
6.7Modified
<6Created

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)

See also​

CREATE SELECTION FROM ARRAY

Properties​

Command number647
Thread safeyes