F_BA_IterateDelimitedStrRight2L

F_BA_IterateDelimitedStrRight2L 1:

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

F_BA_IterateDelimitedStrRight2L 2: 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.

F_BA_IterateDelimitedStrRight2L 3: Outputs

Name

Type

Description

_sPart

POINTER TO STRING

Current substring.

_nPart

UDINT

Length of the current substring.