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.