DlgComboBox.InsertItem

number DlgComboBox.InsertItem ( 

number ControlID,

number Index,

string ItemText )

Description

Inserts an item into a combo 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 combo box control you want to insert the item into.

Index

(number) The index (line number) to insert the new item. Use an index of -1 to insert at the end of the list.

ItemText

(string) The item text to display for the new item.

Returns

(number) The index (line number) where the item was inserted. If an error occurs, -1 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