Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Truncate question
Message
 
 
À
15/08/2001 12:04:26
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00544131
Message ID:
00544160
Vues:
21
>Is there an obvious way to eliminate the last four characters of a string variable? Like somehow use the RIGHT() function? The number of characters of the string vary, but the string always has the same four characters at the end. Like an extension.
>
>Thanks for putting up with newbie questions.

To combine the suggestions, here is another option:

strtran(lcString, right(lcString, 4), '')

As you can see, in VFP there are usually 3 ways of coming up with the same result.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform