F_BA_RemoveDelimited2L

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
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. |