EasyManua.ls Logo

Siemens SINUMERIK 828D

Siemens SINUMERIK 828D
1167 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function name Description
String length The function gives the number of characters in a string.
Parameter:
str1 - string
Syntax:
<function name="string.length" return="<int var>">
str1 </function>
Example:
<let name="length">0</let>
<let name="str1" type="string">A
brown bear hunts a
brown dog.</let>
<function name="string.length" return="length">
str1 </function>
Result:
length = 31
Strings to replace The function replaces all the substrings found with the new string.
Parameter:
string - string variable
find string - string to be replaced
new string - new string
Syntax:
<function name="<string.replace>"> string, find
string, new string </function>
Example:
<let name="str1" type="string">A
brown bear hunts a
brown dog. </let>
<function name="string.replace" > str1, _T"a brown
dog" , _T"a big salmon"</function>
Result:
str1 = "A brown bear hunts a big salmon!"
Generating user dialogs
1.9 Predefined functions
Easy XML
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3 91

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals