Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I direct user to a control after valid event.
Message
 
To
23/11/1998 11:12:45
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00160401
Message ID:
00160511
Views:
19
Paul,

You could issue thisform.control.setfocus() statements in the Lostfocus EventMethod ... or you can let your Valid() method return the difference between the tabindexes of the current and the target controls. To compute this you could write a method into you base form and issue

return thisform.ComputeDifferenceTabIndex(this,thisform.control)

and the method would look something like

*---
procedure ComputeDifferenceTabIndex(o1,o2)

return o2.tabindex-o1.tabindex

hth,

Marc


>Thanks for the reply,
>
>Experienced users of the system know the codes and would like to directly enter the codes and then tab to the next textbox. I've set the tab order to so that the textboxes are at the top of the order with the combo boxes at the bottom.
>
>The users only want the combo boxes to display if they make a mistake in the textbox entry.
>
>Paul
>
>>Why don't you use a combobox directly?
>>
>>Vlad
>>

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform