DlgComboBox.SetItemData

DlgComboBox.SetItemData ( 

number ControlID,

number Index,

string ItemData )

Description

Sets a combo box control's item data on the current screen to a string that can later be retrieved using a DlgComboBox.GetItemData action.

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 data you want to set.

Index

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

ItemData

(string) The text you want to set the item's associated data to.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions