ListBox.AddItem

number ListBox.AddItem (

string ObjectName,

string Text,

string Data = "" )

Description

Adds an item to a listbox object.

Parameters

ObjectName

(string) The name of the listbox object.

Text

(string) The item text to display.

Data

(string) The item data to associate with the item text.

Returns

(number) The index where the item was added. If an error occurs, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions