DlgListBox.GetSelected

table DlgListBox.GetSelected ( 

number ControlID )

Description

Returns a numerically indexed table containing the indexes (line numbers) of all of the selected items in a specified list box control.

Note: This action will only work if called from a screen's events and if the named control is on the current screen.

Parameters

ControlID

(number) The numeric ID of the list box control whose selected items you want.

Returns

(table) A numerically indexed table containing all item indexes that are currently selected. If no items are selected or an error occurs, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions