ns=2;s=DEPRAG Smart/Utilities/StringOperations/EndsWith
Checks if a text ends with another text.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bStringEndsWith : BOOL;
OutputDataStringEndsWith : ST_BoolOutputData;
hrStringEndsWith : HRESULT;
fbStringOperations : FB_StringOperations;
END_VAR
hrStringEndsWith := fbStringOperations.StringEndsWith(
bExecute := bStringEndsWith,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ContainString := 'Ich bin ein String',
ContainStringLength := SIZEOF('Ich bin ein String'),
Value := 'String',
ValueLength := SIZEOF('String'),
IgnoreCase := TRUE,
OutputData => OutputDataStringEndsWith);
IF hrStringEndsWith <> S_FALSE THEN
bStringEndsWith := 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".