Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRIM leading zeros
Message
 
 
To
11/01/2011 15:41:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01495747
Message ID:
01495749
Views:
66
>Please Note: VFP 8
>
>Is there an expression which will trim leading zeros from a character expression? The expression may contain non-numeric characters.
>
>What I've come up with seems so convoluted there almost has to be a better way.
>xx="00010012012"
>? SUBSTR(xx,AT(LEFT(CHRTRAN(xx,"0",""),1),xx))
>
>Thanks to all.........Rich

Check Re: Drop leading zeros Thread #1383641 Message #1383645 and the whole thread (yours).
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform