listview.newItem Method


index = listview.newItem(strMultiText, strSeparator);

Inserts a new item into the list view and returns its index. The item is inserted at the end if the list does not sort items automatically.

The values for each column of the new item are specified in the strMultiText string, separated by strSeparator.

Parameters

strMultiText
Required. String containing values for each column of the new item.
strSeparator
Optional. Separator character for the multi string. Default value is '|'.

Example

// Insert an item with two columns using the default separator
    ListView.newItem("new|item");
    if (ListView.findItem("new|item") == -1)
        Env.LogError("Could not find new inserted item");

See also

listview Overview | listview_deleteItem

 


© 2003 Lightweight Technologies. All rights reserved.