F_BA_RemoveEqualVal2L

F_BA_RemoveEqualVal2L 1:

The function F_BA_RemoveEqualVal2L skips a previously known range of identical values in a structured string. The rest of the string is returned via sResult.

Syntax

FUNCTION F_BA_RemoveEqualVal2L : BOOL
VAR_INPUT
  sString    : POINTER TO STRING;
  nString    : UDINT := 0;
  sSeparator : POINTER TO STRING;
  sCompare   : POINTER TO STRING;
  nCompare   : UDINT := 0;
END_VAR
VAR_OUTPUT
  sResult : POINTER TO STRING;
END_VAR

F_BA_RemoveEqualVal2L 2: Inputs

Name

Type

Description

sString

POINTER TO STRING

A string from which values are removed.

nString

UDINT

Length of sString. If the value is 0, it is determined automatically.

sSeparator

POINTER TO STRING

Delimiter between values.

sCompare

POINTER TO STRING

Comparison string.

nCompare

UDINT

Length of sCompare. If the value is 0, it is determined automatically.

F_BA_RemoveEqualVal2L 3: Outputs

Name

Type

Description

sResult

POINTER TO STRING

Remaining string after removal.