ns=2;s=DEPRAG Smart/Utilities/StringOperations/Equals
Checks if two texts are the same.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bStringEquals : BOOL;
OutputDataStringEquals : ST_BoolOutputData;
hrStringEquals : HRESULT;
fbStringOperations : FB_StringOperations;
END_VAR
hrStringEquals := fbStringOperations.StringEquals(
bExecute := bStringEquals,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
StringOne := 'Ich bin ein String',
StringOneLength := SIZEOF('Ich bin ein String'),
StringTwo := 'String',
StringTwoLength := SIZEOF('String'),
IgnoreCase := TRUE,
OutputData => OutputDataStringEquals);
IF hrStringEquals <> S_FALSE THEN
bStringEquals := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".