Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatically advance to next field
Message
From
06/09/2006 06:41:45
 
 
To
06/09/2006 06:10:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01151228
Message ID:
01151241
Views:
21
>I need to have 2 textboxes that act like the columns in a browse. For example if I had 3 textboxes, one fopr area code, one for prefix and one for suffix like a phone number, I want the user to type in 201 and after they type the 1 in 201 the cursor automatically goers to the next field (the prefix without hitting enter.
>
>Is there some autoadvance or autoreturn property?
>
>Thanks,
>John

Well this sounds (at first hand) like a job for TabOrder.

How do you indicate completion of the 201 field (return, tab or just the typing of "1")? Is the field always going to end in "1"?

The valid event - you can return 1 (advance to next field in tab order)

You can use InteractiveChange event to keep a count of keystrokes. On 3 you can thisform.txtNextField.SetFocus().

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform