Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strip leading zeros
Message
De
21/10/2009 15:05:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01430254
Message ID:
01430482
Vues:
68
>You can use ltrim for this
>
>
>LOCAL laTest(4)
>
>laTest[1]	= "0002567890"
>laTest[2]	= "0000027890"
>laTest[3]	= "00002678-1"
>laTest[4]	= "0000000002"
>
>FOR i = 1 TO ALEN(laTest, 1)
>	? LTRIM(laTest[i], 1, "0")
>NEXT i
>
>
>Although I am not sure if the extra parameter(s) were available in VFP 8

Unfortunately, they aren't.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform