MID (FUN)¶
FUNCTION MID : IString
Returns a specific number of runes of a string, starting from a specific position
Returns 0 in case of
eErrorID
<> ERROR.NO_ERROR
See
IStringRepresentation
☛ ToIString(itfResource, liStart, liStart + TO_LINT(udiCount-1))
- InOut:
Scope
Name
Type
Comment
Return
MID
Input
itfString
String to be analyzed
udiCount
UDINT
Number of runes, counted from the left
udiStart
UDINT
Start position for the partial string
itfResource
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