F_BA_IterateDelimitedStrRight2L

The function F_BA_IterateDelimitedStrRight2L iterates from right to left through a delimited string. Each time the function is called, the current substring is passed until all substrings have been processed.
Syntax
FUNCTION F_BA_IterateDelimitedStrRight2L : BOOL
VAR_INPUT
sString : POINTER TO STRING;
nString : UDINT := 0;
sSeparator : POINTER TO STRING;
END_VAR
VAR_OUTPUT
_sPart : POINTER TO STRING;
_nPart : UDINT;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
sString | POINTER TO STRING | A string that is split into parts. |
nString | UDINT | Length of the string. If the value is 0, it is determined automatically. |
sSeparator | POINTER TO STRING | Separator. |
Outputs
Name | Type | Description |
|---|---|---|
_sPart | POINTER TO STRING | Current substring. |
_nPart | UDINT | Length of the current substring. |