Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

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.

Voir également

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringInString()

StringLeft()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic