Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I direct user to a control after valid event.
Message
 
À
23/11/1998 11:12:45
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00160401
Message ID:
00160511
Vues:
27
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform