ListBoxGetItem

Purpose:

Get the value of an item in a ListBox or ComboBox object.

Category:

ListBox and ComboBox

Syntax:

ListBoxGetItem "listbox object" number [result var]

listbox object

An existing Listbox object name.

number

The line number to get the value (first one = 1).

result var

Variable to store the result.

Example:

ListBoxGetItem "Listbox1" 2 [myvar]


ListBoxGetSelectedItem

Purpose:

Gets the value of a selected item in a ListBox or ComboBox.

Category:

ListBox and ComboBox

Syntax:

ListBoxGetSelectedItem "listbox object" [result var]
listbox object

An existing Listbox object name.

result var

Variable to store the result.

Example:

ListBoxGetSelectedItem "Listbox1" [myvar]


ListBoxGetSelectedIndex

Purpose:

Get the index number of the selected index in a ListBox or ComboBox.

Category:

ListBox and ComboBox

Syntax:

ListBoxGetSelectedIndex "listbox object" [result var]

listbox object

An existing Listbox object name.

result var

Variable to store the result.

Example:

ListBoxGetSelectedIndex "Listbox1" [myvar]


ListBoxAddItem

Purpose:

Add an item to a ListBox or ComboBox object.

Category:

ListBox and ComboBox

Syntax:

ListBoxAddItem "listbox object" "item text" "item value"
listbox object

An existing Listbox object name.

item text

Item text to show to the user.

item value

Item value to store.


Example:

ListBoxAddItem "Listbox1" "Woman" "W"


ListBoxDeleteItem

Purpose:

Delete an item in a ListBox or ComboBox object.

Category:

ListBox and ComboBox

Syntax:

ListBoxDeleteItem "listbox object" number

listbox object

An existing Listbox object name.

number

The line number to delete (first one = 1).

Example:

ListBoxDeleteItem "Listbox1" 2


ListBoxDeleteSelectedItem

Purpose:

Delete the selected item in a ListBox or ComboBox object.

Category:

ListBox and ComboBox

Syntax:

ListBoxDeleteSelectedItem "listbox object"
listbox object

An existing Listbox object name.

Example:

ListBoxDeleteSelectedItem "Listbox1"


ListBoxChangeItem

Purpose:

Modify an item in a ListBox or ComboBox object.

Category:

ListBox and ComboBox

Syntax:

ListBoxChangeItem "listbox object" number "new item text" "new item value"

listbox object

An existing Listbox object name.

number

The line number to change (first one = 1).

new item text

New item text to show to the user.

new item value

New item value to store.

Example:

ListBoxChangeItem "Listbox1" 2 "Spain" "SP"


ListBoxSize

Purpose:

Get the total number of items in a ListBox or ComboBox object.

Category:

ListBox and ComboBox

Syntax:

ListBoxSize "listbox object" [result var]
listbox object

An existing Listbox object name.

result var

Variable to store the result.

Example:

ListBoxSize "Listbox1" [myvar]


ListBoxSort

Purpose:

Arrange the items in a ListBox or ComboBox object in alphabetical order.

Category:

ListBox and ComboBox

Syntax:

ListBoxSort "listbox object"

listbox object

An existing Listbox object name.

Example:

ListBoxSort "Listbox1"


ListBoxMoveSelectedItemUp

Purpose:

Move the selected item one position up in a ListBox.

Category:

ListBox and ComboBox

Syntax:

ListBoxMoveSelectedItemUp "listbox object"

listbox object

An existing Listbox object name.

Example:

ListBoxMoveSelectedItemUp "Listbox1"


ListBoxMoveSelectedItemDown

Purpose:

Move the selected item one position down in a ListBox.

Category:

ListBox and ComboBox

Syntax:

ListBoxMoveSelectedItemDown "listbox object"

listbox object

An existing Listbox object name.

Example:

ListBoxMoveSelectedItemDown "Listbox1"