4D v16.3

LONGINT ARRAY FROM SELECTION

Home

 
4D v16.3
LONGINT ARRAY FROM SELECTION

LONGINT ARRAY FROM SELECTION 


 

LONGINT ARRAY FROM SELECTION ( aTable ; recordArray {; selection} ) 
Parameter Type   Description
aTable  Table in Table of the current selection
recordArray  Longint array in Array of record numbers
selection  String in 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.

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
SELECTION TO ARRAY

 
PROPERTIES 

Product: 4D
Theme: Arrays
Number: 647

This command can be run in preemptive processes

 
HISTORY 

Modified: 4D v6.7

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)