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) |
Related Topics
Position of the item in the Items table
Related Topics
Methods of the DialogclearData
close (Dialog)
closeDialog (Dialog)
createButton
createCheckBox
createDropDownListBox
createEditTextBox
createGroupBox
createImage
createListBox
createListView
createMenu
createRadioButton
createStaticTextBox
createTabControl
createTabPage
getCheckBox
getIcon
getIndex
getItemsList
getPasswordMasking
getTable (List View)
getTableRow
getUserDialogXYWH
getValue (Dialog)
open (Dialog)
openDialog (Dialog)
setCallbackArgument
setCaption
setCheckBox
setEditType
setGroupID
setIcon
setList
setPasswordMasking
setSensitive
setTab
setTable (Dialog)
setTableRow
updateUserDialog