>>I know aboutthe SETFOCUS Method. As mentioned above, I do not know WHAT "Control" is.
>>
>>In the FPW2.6 code I did not care as I used _CUROBJ = OBJNUM(currentfield)+1
>>This set the focus to the NEXT tab order field without the need of knowing what its name or variable was.
>>
>>THIS IS WHAT I NEED TO DO!!
>>
>>Bernard
>
>You can return a numeric value from the VALID event of a control to specify which control gets the focus. Quoting from the VFP5 help file:
>· If a positive value is returned, the value specifies the number of controls the focus advances. For example, if the Valid event returns 1, the next control gets the focus.
>· If a negative value is returned, the value specifies the number of controls the focus moves back. For example, if the Valid event returns –1, the previous control gets the focus.
>
>HTH,
>Rick
Might work Rick. Will certainly give it a GO.
Thanks
Bernard