Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus() from within a LostFocus event acting strangely
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SetFocus() from within a LostFocus event acting strangely
Miscellaneous
Thread ID:
00465934
Message ID:
00465934
Views:
43
I have coded some setfocus() commands in a field's lostfocus. This seems to have an unexpected result in VFP6 service pack 4. The execution follows this path:

Field1.Valid start
Field1.Valid return

Field1.LostFocus start
execute field2.setfocus() in the lostfocus

Field2.when fires (as expected)
Field2.when returns

Field1.Valid fires (WHAT?)
Field1.Valid returns

Field2.Gotfocus fires
Field2.Gotfocus returns

Field2.when fires (what? when again AFTER gotfocus?)
Field2.when returns

Field1.LostFocus returns

We are now in Filed2 waiting for input.

Has anyone seen this before?

Weldon Adair
Weldon Adair
Adair Software Corporation
(561) 445-8091
Next
Reply
Map
View

Click here to load this message in the networking platform