setIndex

Syntax

<Path>.setIndex(DialogItem:string, ItemNumber:integer) → boolean

The method setIndex sets the number of the item, which the item of type New List Box and the New Drop-Down List Box or the New Tab Page shows.

Parameters

  • The parameter DialogItem of data type string designates the list box, the drop-down list box, or the tab.

  • The parameter ItemNumber of data type integer designates the item that will be shown.

When you do not enter an item, the Dialog selects the first entry in the list.

  • The parameter DialogItem of data type string can also designate a tab control.

  • The parameter ItemNumber of data type integer can also designate a tab, which the dialog activates within this tab control.The leftmost tab has the number 1.

Return Value

The return value has the data type boolean.

Example

MyDialog.setIndex("units",6)
MyDialog.setIndex("myTabControl",3)
MyDialog.setIndex("listView",3)

Related Topics

Position of the item in the Items table

getIndex