Skip to main content
Version: 11.2

Rowset.range()

note

This article is about the range() function of the Rowset object.

Rowset.range()

Gets the range of records of the current data set, relative to the row set.

Returns a string of the form '*start*-*end*', where start and end are the 1-based index of the first and last record of the current data set. Returns '0-0' if the data set is empty.

Syntax

$.udb( *ds* ).rowSet( *rowSet* ).range()

The required ds parameter is a data source selector.

The required rowSet parameter is a rowset identifier.

Example

let rowSet = $.udb('EMP').rowSet('current');

console.log('Showing records %s', rowSet.range());

Example output:
'Showing records 1-10'