LEFT (FUN)

FUNCTION LEFT : IString

Returns a specific number of runes of a string, starting from left
Returns 0 in case of eErrorID <> ERROR.NO_ERROR
See IStringRepresentationToIString(itfResource, 0, TO_LINT(udiCount-1))
InOut:

Scope

Name

Type

Comment

Return

LEFT

IString

Input

itfString

IString

String to be analyzed

udiCount

UDINT

Number of runes

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