WDELETE (FUN)

FUNCTION WDELETE : WSTRING(255)

Delete LEN wcharacters of STR, beginning at the POS-th character position. POS = 1 is the first character.

Note

The current implementation is unfortunately not correct for the case Pos=0. The implementation cannot be changed for compatibility reasons.

If Pos=0 is used, the parameter LEN is internally reduced by one!

It is generally recommended to use values in the range specified by IEC 61131-3. The smallest value for Pos is specified there as 1.

InOut:

Scope

Name

Type

Return

WDELETE

WSTRING(255)

Input

STR

WSTRING(255)

LEN

INT

POS

INT