Siemens SINUMERIK 840D SL Manuel De Mise En Service page 862

Logiciel de base et logiciel de commande
Masquer les pouces Voir aussi pour SINUMERIK 840D SL:
Table des Matières

Publicité

Création de boîtes de dialogue utilisateur
1.10 Fonctions prédéfinies
Nom de la fonction
String find
114
Signification
La fonction recherche dans la chaîne transmise la première corres‐
pondance avec la chaîne partielle.
Si la chaîne partielle est trouvée, la fonction fournit l'indice sur le pre‐
mier caractère (commençant par zéro), sinon -1.
Paramètres :
string - Variable String
find string - Chaîne à rechercher
startindex – Indice de départ (facultatif)
Syntaxe :
<function name="string.find" return="<int val>">
str1, find string </function>
Exemple :
<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>
Résultat :
Index = 2
ou
<function name="string.find" return="index"> str1,
_T"brown", 1 </function>
Manuel de programmation, 12/2017, 6FC5397-1DP40-6DA1
Easy XML

Publicité

Table des Matières
loading

Table des Matières