Gets the number of rows actually contained in the table.
Syntax
Property Value
Type:System.Int32
The number of rows actually contained in the table.
Example
The following code example shows the value of the
RowCount property at various points in the life of a table.
| C# | Copy Code |
|---|
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
// get rows count
int rowsCount = table.RowCount;
// add row
table.AddRow("one:two:three:four");
// get rows count
if (table.RowCount != rowsCount) return "Rows count was changed";
return "Rows count wasn't changed"; |
| PHP | Copy Code |
|---|
// get table by name "MyTable"
IZennoTable table = project.Tables->get_Item("MyTable");
// get rows count
$rowsCount = $table->RowCount;
// add row
$table->AddRow("one:two:three:four");
// get rows count
if ($table->RowCount != $rowsCount) return "Rows count was changed";
return "Rows count wasn't changed"; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also