>>>Hi,
>>>
>>>Is there anyway can keep the cursor at one object? i have tried to set the object focus with setfocus method in valid method, but its not work with error. Is there any suggestion for me?
>>>
>>>Thank you very much
>>>Aston
>>
>>Aston, move your Setfocus() code from Valid() to LostFocus() and it will work.
>>
>>Nick
>
>RETURN 0
>
>from the object's Valid.
Thanks for the correction, Craig, I just concentrated on "setfocus from Valid part" ... :)
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison