>Hi,
> I am asking this for my curiosity.
>a) Dragan, If u are developing a application where diferent currencies are involved would u use a numeric data type or a currency data type.
>b) Knowing the pros & cons of using a currency data type and if your user wants to view currency data in 2 decimal digits or 3 decimal digits instead of 4, what would u do?
>c) Are all the applications developed in VFP using currency datatype display 4 decimal digits. (pls note :i am only saying about displaying the figures.)
ad a) I'd rather use currency - all the currencies use two or no decimals, so four is quite sufficient to achieve precision. Since it's internally integer, the calculations could be significantly faster.
ad b) Exactly what Vlad said: develop a textbox class to have the proper inputmask in it, eventually to display a proper abbreviation next to it as well(OK, a container with a textbox then); for reports, I'd probably have to use a keyboard macro for mass-editing of controls or overlap the controls if I had to print numbers with different inputmasks.
ad c) if you do nothing about it, they do. You can set the input mask for these fields in the DBC, though, so they would get their defaults from there.