DataBasic Reference > Statements and Intrinsic Functions > S > SELECTINFO Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

SELECTINFO Function (DataBasic) (m618703+selectinfo_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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.

RealityV15.1 (MoTW) Revision 7Comment on this topic