SELECTINFO Function
Returns the status of a select list.
Syntax
SELECTINFO([list || listNumber]{,X})
Syntax Elements
list The name of a variable containing a select list created using the SELECT statement, or loaded using the GETLIST or READLIST statement.
listNumber An expression that evaluates to zero, specifying the active select list.
X An optional dummy expression that can be included for compatibility with some implementations of this function. Currently ignored.
Return Value
SELECTINFO returns @TRUE (non-zero) if the select list is active, or @FALSE (zero) if the list is empty or the variable does not contain or reference a list.
Example
IF SELECTINFO(0) = @FALSE THEN SELECT ORDER.FILE TO 0
Selects the file ORDER.FILE to the active select list if this is empty.