Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch22 in When Event
Message
From
17/05/2002 04:20:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00656948
Message ID:
00658036
Views:
30
>Len, I'm confused myself now !!!
>I'll recap on what I am tring to do.
>
>Ideally, In the When Code have the following two separate scenarios:
>
>1)Return .F. and jump out of that control to the next control in the Tab Order
>
>2)MyParticularObj.SetFocus
> Returm .f.
> Which I would like to Jump out of the control and set focus on MyParticularObj
>
>Now:
>I can do 1) no problem
>
>On option 2), I cannot use the when because it does not allow SetFocus so I have to move the code into the GotFocus event.
>
>I now end up with some code in GotFocus and Some code in When.
>
>If I move all the code to the GotFocus event, in my testing scenario 1) (..with a NODEFAULT) returns control to the First object, not the Next object
>
>
>What I am really wondering is there a way to accomodate what I want to do, (for both 1) and 2) in either the When or Gotfocus event. I want to centralize the code in one place ?

Does using about using keyboard '{tab}' for option 1 in the GotFocus event work ?
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform