F_BA_RemoveDelimited2L

F_BA_RemoveDelimited2L 1:

The function F_BA_RemoveDelimited2L removes a section from a string starting at the first occurrence of a delimiter pattern. The search range can be narrowed down using length parameters.

Syntax

FUNCTION F_BA_RemoveDelimited2L : BOOL
VAR_INPUT
  sString : POINTER TO STRING;
  nString : UDINT := 0;
  sPrefix : POINTER TO STRING;
  nPrefix : UDINT := 0;
END_VAR

F_BA_RemoveDelimited2L 2: Inputs

Name

Type

Description

sString

POINTER TO STRING

String from which characters are removed.

nString

UDINT

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

sPrefix

POINTER TO STRING

Search pattern for the section to be removed.

nPrefix

UDINT

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