Skip to main content
Version: 20 R7 BETA

LONGINT ARRAY FROM SELECTION

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

ParameterTypeDescription
aTableTableTable of the current selection
recordArrayArray integerArray of record numbers
selectionTextName 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

Properties

Command number647
Thread safe