Breadcrumbs

GetCount

Returns the number of entries that fit into the filter scheme.

Syntax

  Func_FbGetCount_MnDataCollector.bmp

C++
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.
All entries created later than sStartDateTime are counted. 

sEndDateTime 

Filters the counted entries by an end date.
All entries created earlier than sEndDateTime are counted. 

var_name 

Filters the counted entries by name.

All entries that match var_name are counted.
Note: advanced filtering with %.
With 'Test%' entries with 'Tester', 'Test 13' are also counted. 

var_valueMin 

Filters the counted entries by a minimum value.
All entries with an equal or higher value than var_valueMin are counted. 

var_valueMax 

Filters the counted entries by a maximum value.
All entries with an equal or lower value than var_valueMax are counted. 

var_type 

Filters the counted entries by VarType.
All entries with the same var_type are counted. 

var_comment 

Filters the counted entries based on a comment.
All entries that match var_comment are counted.
As with var_name the filtering can also be loosened with %. 

Rückgabewert 

Returns the number of entries as DWORD that match the filter parameters. 



Example

C++
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