General information
Category:
Coding, syntax & commands
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 ?
Regards,
Gerard
>>Len,
>>The problem is in the GotFocus event. (I have to use this if I want a SetFocus command
>>
>>Bu if I just have a return .f. in the GotFocus, it stays in the control
>>If I Have a Nodefault, it jumps out of the control but seems to labd on the control whos tabindex = 1
>>
>>I want to be able to jump to the next control in the Tab order, without issuing a setfocus command from the GotFocus.
>>
>>regards,
>>
>>Gerard
>
>Hence my comment about missing something & I guess I am. Your first line says you have to use GotFocus if you want a SetFocus, your last lines asks how to do it without use of SetFocus. My suggestion was to use the When event & return .F., which will automatically send you to the next control in the tab order (Cetin confirms this in his reply to me).
>
>Perhaps I am not completely understanding your problem.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only