@INDEX
Windows ✓Linux ✓macOS ⏳
Syntax
@INDEX( <list> )
Description
This function returns the current index (pointer) value for the string list <list>. The parameter <list> must be either a list number or the name of a list dialog element to which the function will apply. If no list item is selected the value returned by this function is -1.
OK
Unchanged.
Example
LIST CREATE, 1, SORTED
LIST LOADFILE, 1, NAMES.TXT
IF @MATCH(1, John)
INFO John is at position @INDEX(1) in the list
END
LIST CLOSE, 1