ListBox.AddItem

number ListBox.AddItem ( 

string ObjectName,

string Text,

string Data = "" )

Example 1

ListBox.AddItem("Document List", "Product Description", "product_description_path");

Adds an item to the "Document List" listbox object. The new entry will display the text "Product Description". The associated item data is a variable called "product_description_path" which could contain the path to a file.

Example 2

item_index = ListBox.AddItem("ListBox4", "Photography");

Adds an item with the text "Photography" to the "ListBox4" listbox object.

See also:  Related Actions