Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : LOOKUP( ) method
 

LOOKUP( ) method

Returns the index of the specified item in a combo-box list or selection list.
Return type: INTEGER
Applies to: BROWSE widget (column), COMBO-BOX widget, SELECTION-LIST widget

Syntax

LOOKUP ( list-string )
list-string
A character-string expression that specifies a single value in the combo box or selection list.
If list-string has the Unknown value (?), LOOKUP returns the Unknown value (?). If list-string is not in the list, LOOKUP returns 0.
For browses, this method applies only to combo-box browse columns.