Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Currency field display problem
Message
From
09/10/2001 10:39:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/10/2001 03:20:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565353
Message ID:
00565942
Views:
18
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform