DlgComboBox.GetItemText

string DlgComboBox.GetItemText ( 

number ControlID,

number Index )

Description

Returns the text of an item in a combo box control on the current screen.

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 combo box control whose item text you want.

Index

(number) The index (line number) of the combo box item whose text you want. The first item in the list has an index of 1.

Returns

(string) The text of the specified combo box item.

If the current screen does not contain the control, this action will fail. If this action fails, 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