ListBox.InsertItem

number ListBox.InsertItem ( 

string ObjectName,

number Index,

string Text,

string Data = "" )

Example 1

ListBox.InsertItem("Cars", 5, "Porsche");

Inserts an item into the fifth line of the "Cars" listbox object. The item text that will be displayed is "Porsche" and it will not have any item data associated to it.

Example 2

inserted_index = ListBox.InsertItem("PictureShow", 1, "Mountains", mountain_path);

Inserts an item into the first index of the "PictureShow" listbox object. The item text to display is "Mountains" and the associated item data is a variable called "mountain_path" which could contain a path to a file.

See also:  Related Actions