Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to strip / delete leading zeros ...
Message
 
À
15/10/2009 15:08:40
Harold Leggett
Information Services Group
Louisville, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01429527
Message ID:
01429532
Vues:
51
>Am doing data conversions with VFP 9.
>
>Need to strip leading zero (or zeros) from a character field (and ONLY leading zeros), then convert to a numeric.
>
>VAL('00203') returns 23 instead of the desired 203
>VAL('2098') returns 298 instead of the desired 2098
>VAL('0298') returns the desired 298 ...


Like Boris, I'm not reproducing your results that you posted here. Is it possible you tried doing this first with STRTRAN and forgot to remove that code?
Jon Rosenbaum
Devcon Drummer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform