Please enable JavaScript to view this site.

ESL Documentation

Object Inquiry Built-in Function

Return the line number of the selected line in a list box.

selected line from LB_NAME

LB_NAME

The identifier for a list box.

Description

In a single-selection list box, the line number of the currently selected line is returned. In a multiple-selection list box, only the first selected line is returned.

Be careful not to confuse selected line from with the function selected line. If selected line from is used in a for each selected line loop, only the first selected line will be used every time through the loop, whereas selected line will loop through all selected line numbers.

Example

 

response to DoAction

 call ProcessQueryDialogBox(DidOKCUA)

 if (DidOKCUA) then

         copy "Action" selected line from

         ActionListBox to ActionName

         action ActionName

 end if