Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch22 in When Event
Message
From
16/05/2002 04:44:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00656948
Message ID:
00657290
Views:
37
>Cetin, I've just been having another look at this:
>
>It seems if I issue a NODefault in the GotFocus event, without a Setfocus, focus goes to the FIRST object in the Tab Order on the screen.
>What I want to do is go to the NEXT object in the Tabindex, but without having to do an explicit MyObject.setfocus. i.e I always want it to go to whatever is the next object in the tabindex:


I guess I'm missing something obvious here, but doesn't returning false in the When event have the required effect. In your original code the .F. was missing from the return, so it would return .T. by default
When Event:
Cmd1
Cmd2
cmd3
If !MyTest1
    return .F.
Endif
If !Mytest2
    Return .F.
Endif
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform