Information générale
Catégorie:
Codage, syntaxe et commandes
>Does vfp have function that will return how many characters are in a field.
>?len(slast) is returning the field length.
>
>Thanks Randy
I'm not 100% sure it work with field of a table, but what you said is the one that you are looking for... The function LEN(cExpression) will return the number of character in the string. If you want with or withouth traling space, until you get a space.. etc, you can put function In the LEN to get what you want : LEN(ALLTRIM("123 ") + ALLTRIM(" 456 ") + STR(789)) will return 9, and so on...
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement