Returns the number of entries that fit into the filter scheme.
Syntax
METHOD PUBLIC GetCount : DWORD
VAR_INPUT
sStartDateTime : STRING;
sEndDateTime : STRING;
var_name : STRING;
var_valueMin : STRING;
var_valueMax : STRING;
var_type : DATACOLLECTOR_TYPE;
var_comment : STRING;
END_VAR
Parameters
|
Parameter |
Description |
|---|---|
|
sStartDateTime |
Filters the counted entries based on a start date.
|
|
sEndDateTime |
Filters the counted entries by an end date.
|
|
var_name |
Filters the counted entries by name. All entries that match var_name are counted.
|
|
var_valueMin |
Filters the counted entries by a minimum value.
|
|
var_valueMax |
Filters the counted entries by a maximum value.
|
|
var_type |
Filters the counted entries by VarType.
|
|
var_comment |
Filters the counted entries based on a comment.
|
|
Rückgabewert |
Returns the number of entries as DWORD that match the filter parameters. |
Example
data : MnDataCollector := (m_sDatabase := '\mnplc\boot\testdata.db', m_DatabaseLimit := DATACOLLECTOR_DATALIMIT_ENTRIES, m_dwDatabaseSize := 5);
AnzahlElemente := data.GetCount('','','',var_valueMin:='7', var_valueMax:='9' ,var_type:= 0,'');
Requirements
Remarks