Skip to content

RowCount

Returns the number of rows in the data table.

1
myDataTable.RowCount():number

Returns

The number of rows in the data table.

Examples

Check whether a record exists

1
2
3
4
5
var existing = $Database.GetData('Sales', 'Customers', 'Email', $Xml.Evaluate('Customer/Email'));

if (existing.RowCount() > 0) {
    throw new Error('A customer with this e-mail address already exists.');
}

See Also