>If you want to test for a condition before an object has focus how do you exit from a WHEN event and set focus to another object? You are not allowed to SETFOCUS within a WHEN event.
>
>thannks
Hi Raymond,
For example you could use this workaround:
IF mycondition
KEYBOARD "{TAB}"
ENDIF
IF mycondition
THISFORM.text7.SETFOCUS()
ENDIF
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