GetRowCount Method

Description

Returns the total number of rows in the longest column in the run-time Data pane sheet.

Syntax

DTSheet.GetRowCount

Return Value

Number

Example

The following example uses the GetRowCount method to find the total number of rows in the first column of the run-time Data pane sheet (MySheet) and writes it to the report.

rowcount = DataTable.GetSheet("MySheet").GetRowCount

Reporter.ReportEvent 2, "There are " &rowcount, "rows in the data sheet."