FindAndDelete

FindAndDelete 1:

The function finds a string, which may occur more than once, in another string and removes it.

The function returns

The function stops the checking of the input length after Parameterlist.cMaxCharacters characters in order to avoid an infinite loop.

FUNCTION FindAndDelete : UDINT

VAR_INPUT

VAR_INPUT
    pSrcString    : POINTER TO STRING;
    pDeleteString : POINTER TO STRING;
    pDstString    : POINTER TO STRING;
    nDstSize      : UDINT;
END_VAR

pSrcString: Pointer to the STRING variable whose string is to be searched (input string)

pDeleteString: Pointer to the STRING variable whose string is to be searched for and removed (input string)

pDstString: Pointer to the resulting STRING variable (output string)

nDstSize: Size of the resulting STRING variable (output string) in bytes. The operator SIZEOF() can be used for the assignment.

Requirements

Development environment

Target platform

PLC libraries to be integrated (category group)

TwinCAT v3.1.4022

PC or CX (x86, x64, ARM)

Tc2_Utilities (System) >=3.3.35.0