F_BA_StrLeft2

F_BA_StrLeft2 1:

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

F_BA_StrLeft2 2: Inputs

Name

Type

Description

sString

ANY_STRING

String to be evaluated.

sSeparator

POINTER TO STRING

Delimiter for the decomposition.

F_BA_StrLeft2 3: Outputs

Name

Type

Description

sResult

STRING

The left substring up to the delimiter.