listview.findItem Property


index = listview.findItem(strMultiText, strSeparator);

Searches for the specified item and returns its index or -1 if no such item exists. The values for each column to search are specified in the strMultiText string, separated by strSeparator. Each one of the strings can contain regular expressions.

Parameters

strMultiText
Required. String containing values for each column of the item. Each of the substrings may contain regular expression patterns.
strSeparator
Optional. Separator character for the multi string. Default value is '|'.

Example

// Test findItem with regular expressions
    var index = ListView.newItem("A first string|A second string");
    if (index != ListView.findItem("\\.*|\\.*second.*"))
        Env.LogError("Could not find the new item");
		

See also

listview Overview | listview_deleteItem

 


© 2003 Lightweight Technologies. All rights reserved.