Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing leading zeros
Message
 
To
11/08/1999 12:15:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252593
Message ID:
00252614
Views:
8
>Try ALLTRIM(STR(VAL('004'))). That will eliminate the leading zeroes. I hope this helps.

I would suggest using LTRIM instead of ALLTRIM - single function. Converting numerics will not produce trailing spaces so no need to trim them! I know I'm fussy!!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform