4D v16.3

Selected record number

Home

 
4D v16.3
Selected record number

Selected record number 


 

Selected record number {( aTable )} -> Function result 
Parameter Type   Description
aTable  Table in Table for which to return the selected record number or Default table, if omitted
Function result  Longint in Selected record number of current record

Selected record number returns the position of the current record within the current selection of aTable.

If the selection is not empty and if the current record is within the selection, Selected record number returns a value between 1 and Records in selection. If the selection is empty, of if there is no current record, it returns 0 (zero).

The selected record number is not the same as the number returned by Record number, which returns the physical record number in the table. The selected record number depends on the current selection and the current record.

Example  

The following example saves the current selected record number in a variable:

 CurSelRecNum:=Selected record number([People]` Get the selected record number



See also 

About Record Numbers
GOTO SELECTED RECORD
Records in selection

 
PROPERTIES 

Product: 4D
Theme: Selection
Number: 246

This command can be run in preemptive processes

 
HISTORY 

Created: < 4D v6

 
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)