INSERT (FUN)ΒΆ

FUNCTION INSERT : IString

Inserts a partial string into another string at a specific position
Returns 0 in case of eErrorID <> ERROR.NO_ERROR
InOut:

Scope

Name

Type

Comment

Return

INSERT

IString

Input

itfString

IString

String into which itfPartial is inserted

itfPartial

IString

String to be inserted into itfString

udiStart

UDINT

Insert position.
0: Inserts before the first rune
1: Inserts after the first rune.

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