DataTable.Each

Overview

Executes given callback for every row in data table.

DataTable myDataTable.Each(fn: (row: DataRow) => void)

Executes given callback for every row in data table.

DataTable myDataTable.Each(fn: (row: DataRow, i: number) => void)

Arguments

(row: DataRow) => void fn

Function to call for every data row.

Remarks

If callback is null, error is thrown.

Example

Scan all rows

var table = $Database.Get({ Parameters : { TargetSchema : 'HR', TargetTable : 'Groups' } }); table.Each(function () { var id = this.Id; });

Copyright © 2010 - 2023 Emakin. All rights reserved.