Commissioning Manual
366 01/2017
The function deletes the defined number of characters starting from
the start position specified.
- string variable
- start index (zero based)
- number of characters to be deleted
<function name="string.delete"> string, start index
, nCount </function>
<let name="str1" type="string">A brown bear hunts.
</let>
<function name="string.delete" > str1, 2,
5</function>
The function searches the transferred string for the first match with
the substring.
If the substring is found, the function provides the index to the first
character (starting with zero) or, failing this, -1.
- string variable
- string to be found
– start index (optional)
<function name="string.find" return="<int val>">
str1, find string </function>
<let name="index">0</let>
<let name="str1" type="string">A brown bear hunts a
brown dog. </let>
<function name="string.find" return="index"> str1,
_T"brown" </function>
Index = 2
<function name="string.find" return="index"> str1,