Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strip leading zeros
Message
From
21/10/2009 15:05:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01430254
Message ID:
01430482
Views:
67
>You can use ltrim for this
>
>
>LOCAL laTest(4)
>
>laTest[1]	= "0002567890"
>laTest[2]	= "0000027890"
>laTest[3]	= "00002678-1"
>laTest[4]	= "0000000002"
>
>FOR i = 1 TO ALEN(laTest, 1)
>	? LTRIM(laTest[i], 1, "0")
>NEXT i
>
>
>Although I am not sure if the extra parameter(s) were available in VFP 8

Unfortunately, they aren't.
Previous
Reply
Map
View

Click here to load this message in the networking platform