Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strip leading zeros
Message
From
20/10/2009 19:42:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
20/10/2009 19:25:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01430254
Message ID:
01430274
Views:
48
>>In the present case, wouldn't it be simpler to do a padl(...) on whatever the user types, before doing the comparison?
>
>I dont' think so. There's no way to determine how many zero's to pad with. BOTH the following values should yield TRUE
>0024567890
>0000000290
I may have misunderstood the problem statement, but I thought in the table, data was filled out with zeros to a certain length, for example, 10 characters. If that is the case, whatever the user types should also be filled out to 10 characters.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform