Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing leading zeros
Message
 
To
11/08/1999 12:12:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252593
Message ID:
00252729
Views:
11
>Hello everyone,
>
>Does anybody knows a simple way of removing 0's from a character field. Ex:
>
>'004'
>
>I want the content of the field to have '4'.
>
>Thanks,
>Sergio O.

Hi Sergio,

Just to demonstrate that there's more than one way. If you're using VFP 6.0:
lcresult = TRANSFORM(VAL('004'))
Only two function calls< g >.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform