StringLen()
- Last UpdatedSep 24, 2024
- 1 minute read
Renvoie le nombre caractères dans une chaîne.
Catégorie
Chaîne
Syntaxe
ResultatEntier = StringLen( leTexte );
Paramètre
Texte
Chaîne littérale ou attribut chaîne.
Remarques
Tous les caractères de l'attribut chaîne sont comptés, y compris les espaces blancs et ceux normalement non visibles à l'écran.
Exemples
StringLen("Douze pour cent") ' renvoie 15;
StringLen("12%") ' renvoie 3;
StringLen("The end." + StringChar(13)) ’ renvoie 9;
[Retour chariot] correspond au caractère ASCII 13.