Skip to main content
Version: 10.1

Rows.index()

note

This article is about the index() function of the Rows object.

Rows.index()

Gets the the index value of the first row in the Rows object. If no record is available, -1 is returned.

Returns an index number.

warning

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

Syntax

*rows*.index()

Example

var ri = $.udb('EMP').rows('current').index();