DELETE (FUN)

FUNCTION DELETE : STR.IString

Deletes a number of runes from a string

Returns 0 in case of eErrorID <> ERROR.NO_ERROR

InOut:

Scope

Name

Type

Initial

Comment

Return

DELETE

STR.IString

Input

itfString

STR.IString

String to be modfied

udiCount

UDINT

Length of the partial string to be deleted, number of runes

udiStart

UDINT

Position in itfString after which the deletion starts

Runes counted from left

Must be greater than 0 (See RIGHT, if the right part of a string is needed)

itfResource

STR.IString

0

Output

eErrorID

ERROR