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

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

Publicité

Nom de la fonction
String reverse find
Easy XML
Manuel de programmation, 12/2017, 6FC5397-1DP40-6DA1
Création de boîtes de dialogue utilisateur
Signification
La fonction recherche dans la chaîne transmise la dernière correspon‐
dance 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ètre :
string - Variable String
find string - Chaîne à rechercher
startindex – Indice de départ (facultatif)
Syntaxe :
<function name="string.reversefind" 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.reversefind"
return="index"> str1, _T"brown" </function>
Résultat :
Indice = 21
ou
<function name="string.reversefind"
return="index"> str1, _T"brown" 10 </function>
Résultat :
Indice = 2
1.10 Fonctions prédéfinies
141

Publicité

Table des Matières
loading

Table des Matières