.indexOf()

Previous Next

Gets the index position of a specified row set if this row set exists in the collection of row sets contained in the Rowset object. Use this function also to find out if a specified row set exists.

Returns an integer. The index is 0-based: the first item has index 0, not 1.

Syntax

.indexOf( row-set, data-source )

The required row-set may be specified using a string or an object. See DataSourceContainer.rowSet() for details.

If the collection contains row sets of multiple data sources, the optional data-source may be used to narrow down the search to one specific data source.

Examples

if (rowSets.indexOf(rowSet.keysString()) === -1)

 return false;