F_BA_StrLeft2

The function F_BA_StrLeft2 returns the left part of a string up to a given delimiter. It is the ANY_STRING variant of F_BA_StrLeft2L.
Syntax
FUNCTION F_BA_StrLeft2 : BOOL
VAR_INPUT
sString : ANY_STRING;
sSeparator : POINTER TO STRING;
END_VAR
VAR_OUTPUT
sResult : STRING;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
sString |
ANY_STRING |
String to be evaluated. |
|
sSeparator |
POINTER TO STRING |
Delimiter for the decomposition. |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
sResult |
STRING |
The left substring up to the delimiter. |