Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropping decimals when printing a report
Message
 
To
19/05/2006 09:11:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01123493
Message ID:
01127553
Views:
20
Hilmar,

I will keep this suggestion in mind. At this moment my main apps have not (yet) moved to VFP9.

Regards,

Ron
>>In a report I need to print numbers with only the relevant decimals. 100.001 should print the same but 100.000 should only print as 100. Is there an easy way to do this or do I need to program this?
>>
>>Regards,
>>
>>Ron Brahma
>
>
>transform(number)
>
>* or, apparently safer:
>
>alltrim(padl(number, 20))
>
>* or (requires VFP 9)
>
>cast(number as M)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform