Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formating For Currency
Message
 
 
To
18/08/2001 11:51:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00545850
Message ID:
00545872
Views:
13
>Look at the Format property of the textbox control in the help file. This will give you a few tips to help you get the effect you want.
>
>>I have a fox pro 3.0 form that I want to add formatting on few fields to. I would like the user to enter a dollar amount of an item. This can range from a few cents to thousands of dollars. I want to make sure whatever they enter always has a decimal place and the amount of cents such as 1.00 or 10.00 or 1000.00 . How do I set up this type of format for currency?
>>
>>Thanks in advance

A textbox has InputMask property where you can specify formatting for each position in textbox for data entry and display. You can set this property at design time or runtime, for example,
Mytextbox.Inputmask = "999999999.99"
 or 
Mytextbox.Inputmask = "999,999,999.99"   && if you want thousends separated by commas too
The Format property on other hand specifies a behavior for the entire input field.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform