Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: Fred Cohen
  Where is Fred Cohen?
 Moorestown
 New Jersey - United States
 Fred Cohen
 Tags
Subject: RE: Entering Dollars and Cents
Thread ID: 33742 Message ID: 33764 # Views: 0 # Ratings: 0
Version: Visual FoxPro 6 Category: General VFP Topics
Date: Wednesday, December 03, 2003 7:59:38 AM         
   


> When I use a text box with input mask 99.99 to receive dollar values, I find it necessary to enter a zero before any value below 10.00. This is a royal pain. I know I can work around this by creating separate text boxes for the dollars and cents, but I cannot help but wonder if there isn't an easier way.
>
> If it is necessary to use separate fields, is there some code I can use for automatically transfering focus to the "cents" field when the decimal point is entered?
>
> Can anyone help me?
>
>
> Fred888

I assume the controlsource of the textbox is numeric. Then this should be no problem at all, when you define 2 (or more) decimals after the integer part then typing the decimal point should immediately bring you to the decimal values.

Boudewijn LutgeĀ®ink
Boudewijn.Lutgerink@foxite.com
The music, played at a wedding, reminds me every time to music played when soldiers march to the frontier... (Heinrich Heine)

ENTIRE THREAD

Entering Dollars and Cents Posted by Fred Cohen @ 12/2/2003 6:34:18 PM
RE: Entering Dollars and Cents Posted by Toby Mosby @ 12/2/2003 7:23:57 PM
RE: Entering Dollars and Cents Posted by Boudewijn Lutgerink @ 12/3/2003 7:59:38 AM