Skip to main content
Version: Next

LONGINT ARRAY FROM SELECTION

LONGINT ARRAY FROM SELECTION ( aTable ; recordArray {; selection} )

ParameterTypeDescription
aTableTable🡒Table of the current selection
recordArrayLongint array🡘Array of record numbers
selectionString🡒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)

See also

CREATE SELECTION FROM ARRAY