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

AVEVA™ InTouch HMI

StringLeft()

  • Last UpdatedSep 24, 2024
  • 1 minute read

Retourne une chaîne avec le nombre spécifié de caractères dans le paramètre, à partir du caractère le plus à gauche.

Catégorie

Chaîne

Syntaxe

ResultatChaine = StringLeft( leTexte, nbCaractères );

Paramètres

Texte

Chaîne littérale ou attribut chaîne.

nbCaracteres

Nombre de caractères à renvoyer ou un attribut entier.

Remarques

Si nbCaractères est défini à 0, la chaîne entière est renvoyée.

Exemples

StringLeft("La pompe de contrôle est activée", 2) ' renvoie "La";

StringLeft("Pompe 01 activée", 5) ' renvoie "Pompe";

StringLeft("Pompe 01 activée", 96) ' renvoie "Pompe 01 activée";

StringLeft("La pompe de contrôle est ON", 0) ' renvoie "La pompe de contrôle est ON";

Voir également

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringInString()

StringLen()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic