LEN()

LEN(S)

RETOURNE LE NOMBRE DE CARACTÈRES DU STRING S

  • Type: Fonction
  • Paramètre: 1
  • Groupe: Chaines de caractères

ACTION

La fonction LEN(S) retourne le nombre de caractères de l'expression chaîne de caractères S.

SYNTAXE : Resultat=LEN(S)

  • S = expression chaîne de caractères.

UTILISATION

  • La fonction LEN() est utilisée pour connaître le nombre de caractères d'une chaine de caractères.

ERREUR

  • Rien.

EXEMPLE

print len("abcd")

print "4"

EN RAPPORT

INSERT$()

INSTR()

LEFT$()

LOWER$()

LTRIM$()

MID$()

RIGHT$()

RTRIM$()

STR$()

STRING$()

TRIM$()

UPPER$()