TotalRowCount property
- Last UpdatedJul 19, 2024
- 1 minute read
The TotalRowCount property is a read-only integer property that gets the total number of alarm records in the Alarm Control.
For current alarms (and recent alarms and events), the RowCount property value is always the same as the TotalRowCount property value.
For historical alarms, if the Alarm Control retrieves more alarm records than specified by the MaxDatabaseRecords property value, it splits these into multiple pages.
The RowCount property value shows how many alarm records are currently shown on the current page, whereas the TotalRowCount property value shows how many alarm records are retrieved from the alarm database.
Syntax
Result = AlarmClient.TotalRowCount;
Return Value
Returns the end date and time of the Alarm Control in historical mode.
Example
NTRows = AlarmClient1.TotalRowCount;
If (NTRows > 1000) then
LogMessage("More than 1000 records are currently in the Alarm Control");
Endif;