This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
LONGINT ARRAY FROM SELECTION
|
LONGINT ARRAY FROM SELECTION ( aTable ; recordArray {; selection} ) | ||||||||
Parameter | Type | Description | ||||||
aTable | Table |
![]() |
Table of the current selection | |||||
recordArray | Longint array |
![]() |
Array of record numbers | |||||
selection | String |
![]() |
Name of the named selection or the current selection if this parameter is omitted | |||||
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.
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)
Product: 4D
Theme: Arrays
Number:
647
Modified: 4D v6.7
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)