Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dollar Entry
Message
From
17/02/1999 11:38:51
 
 
To
16/02/1999 20:05:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00188204
Message ID:
00188443
Views:
22
>I want to do something that MUST be supported by VFP, but I'm flummoxed as to how to get it exactly as I want it.
>
>I have a textbox which is used to enter dollar amounts (11.2 field will hold the data). I want to allow the user to enter 8 digits to the left of the decimal point, and 2 to the right, and I want commas and a currency symbol inserted at the proper places.
>
>The InputMask for this field is set to: '$$,999,999.99'; this does everything I want EXCEPT whent he user enters 8-digit values (e.g., 12,345,678.90), when the dollar sign is lost.
>
>The problem seems to be that the $$ in the input mask take the place of 2 digit places, but ALSO specify the floating currency symbol.
>
>I suspect this is a stupid question, but...
>

Jeff,

There are no stupid questions -- except the ones that were not asked.

Natively, VFP does not handle numeric data entry very well. You are probably thinking of entering data in the classic 10-key style, right to left with the decimal place automatically set at 2 places.

Take a look in the files section. Search on "nummeric" or look in "classes -vcx" for "numeric textbox class" and "enhanced numeric textbox class". Either of these should give you what you want with a little adaption to display the currency symbol in the format.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform