F_BA_StrLeft2L

The function F_BA_StrLeft2L returns the left part of a string up to a given delimiter.
Syntax
FUNCTION F_BA_StrLeft2L : BOOL
VAR_INPUT
sString : POINTER TO STRING;
nString : UDINT := 0;
sSeparator : POINTER TO STRING;
END_VAR
VAR_OUTPUT
sResult : STRING;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
sString |
POINTER TO STRING |
String to be evaluated. |
|
nString |
UDINT |
Length of the string. If the value is 0, it is determined automatically. |
|
sSeparator |
POINTER TO STRING |
Delimiter for the decomposition. |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
sResult |
STRING |
The left substring up to the delimiter. |