Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small number to string conversion
Message
From
17/05/2006 23:26:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/05/2006 22:56:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01123084
Message ID:
01123090
Views:
50
>>See Transform()
>
>I could have done it with transform by doing something like that:
>
>
>TRANSFORM(lnAmount,"99999999999999999.999999999999999")
>
>
>in order to make room for any kind of data that could be received as a numeric. But, I wanted something clean. So, I ended up with the ALLTRIM(PADL(lnAmount,20)) such as I mentioned in the other message.

No, I think the idea was to use transform() without additional parameters, thusly:
? transform(lnAmount)
This had some inconsistent behavior in older versions, but I think those were fixed in VFP 8 or 9. alltrim(padl(...)) was the safer alternative, for those older versions.
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
Next
Reply
Map
View

Click here to load this message in the networking platform