Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically removing zero's
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01022697
Message ID:
01022703
Views:
12
>I have a number field which is padded with zero's. For example:
>
>0000012345
>000013456
>
>How can I programmatically remove the zero's??
>
>Many Thanks

Try:
? TRANSFORM(VAL(CHRTRAN("ABCD0000110231",CHRTRAN("ABCD0000110231","0123456789",""),""))) -> 110231
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform