Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input mask for numeric to just get cents part in report
Message
 
 
À
18/01/2005 16:05:22
Alp Berker
Defense Finance and Accounting Services
Indianapolis, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00978315
Message ID:
00978317
Vues:
18
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform