DELETE (FUN)ΒΆ

FUNCTION DELETE : IString

Deletes a number of runes from a string
Returns 0 in case of eErrorID <> ERROR.NO_ERROR
InOut:

Scope

Name

Type

Comment

Return

DELETE

IString

Input

itfString

IString

The original String, will not be modified

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

IString

The resource that this function is working on. It will contain the result after the function call and will also be returned by this function so it can be used in nested calls.

Output

eErrorID

ERROR