Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a dollar amount to a string?
Message
 
To
30/09/1999 13:29:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00271203
Message ID:
00271208
Views:
22
>my_amt = 12.45
>my_amt = str(my_amt)
>
>When I change my dollar amount of 12.45 to a string, I loose the
>decimal point values. When I do a (?my_amt) it shows the 12
>and I loose the .45.. Could someone tell me what happend to the
>deciaml values?

Hi Robert,

In VFP 6.0, use:
? TRANSFORM(my_amt)
* Or
? TRANSFORM(my_amt, "@$")
George

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

Click here to load this message in the networking platform