FIND (FUN)
FUNCTION FIND : UDINT
Searches for the position of a partial string within a string.
The find is index based, to search from first position udiStart := 0
Return value also returns index of the found rune, e.g. for found first rune it returns 0
- InOut:
Scope |
Name |
Type |
Initial |
Comment |
Return |
FIND
|
UDINT
|
|
|
Input |
itfString
|
IString |
|
String within which itfPartial is searched |
itfPartial
|
IString |
|
String whose position is searched in itfString |
udiStart
|
UDINT
|
0 |
The index position within itfString from where the
search starts |
Output |
eErrorID
|
ERROR |
|
|