>>>>Hello to all of you guys,
>>>>If I have a form with 4 fields field1,field2,field3 and
>>>>field4 one next to the other, when from the valid event of the field1 I say THISFORM.field3.SetFocus() to jump field2, it sets the focus on field3 and lets me type on field3, but, after typing if I use the TAB key to move to field4 it actually moves to field2, why is that ?
>>>>Thanks in advance.
>>>
>>>Use NODEFAULT.
>>I'm using 3.0b, NODEFAULT doesn't exist in 3.0b,
>>I can't change the tab order because depending on certain
>>conditions it should jump from field1 to field2 or field1 to
>>field3 any other suggestions ?, Actually what I am doing is
>>KEYBOARD "{TAB}", it works but I don't like it.
>
>It does exist. That's true that there is no separate article in Help (see it in DEFINE CLASS).
RETURN (n)
When you add a number after the RETURN in the valid event, the focus jump to the (n) object after the current one in tab order. You can also put a 0 (zero) to keep the focus on the object or a negative number to jump backward in the inverse order of tab order.
I hope this help U
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca