Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input mask for numeric to just get cents part in report
Message
 
 
To
18/01/2005 16:05:22
Alp Berker
Defense Finance and Accounting Services
Indianapolis, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978315
Message ID:
00978317
Views:
17
>Hello to everyone,
>I have a numeric (currency) field where I need a mask to just display the cents part of the amount on a report, I've tried a couple of different ways but can't seem to get it to work right. I don't want to display the dollar amount but just the cents.
>So $123.45 should just should up as 45 (important- without the decimal).
>Thanks for any help and suggestions you may have.
>I am open to doing a UDF also in the report, and suggestions if a mask doesn't work will also be considered.
>thanks!
Alp,

Try following expression
INT((MTON(amount)*100)%100)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform