F_BA_RemoveEqualChar2L

F_BA_RemoveEqualChar2L 1:

The function F_BA_RemoveEqualChar2L skips all matching characters at the beginning of two strings and returns a pointer to the remainder of sString.

Syntax

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

F_BA_RemoveEqualChar2L 2: Inputs

Name

Type

Description

sString

POINTER TO STRING

A string whose beginning is compared.

nString

UDINT

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

sCompare

POINTER TO STRING

Comparison string.

nCompare

UDINT

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

F_BA_RemoveEqualChar2L 3: Outputs

Name

Type

Description

sResult

POINTER TO STRING

The remaining string starting from the first differing character.