Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus() from within a LostFocus event acting strangel
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00465934
Message ID:
00466024
Views:
13
Nope. There is no nodefault.

The field1.lostfocus is sort of

DO CASE
CASE blabal
this.parent.field2.setfocus()
CASE soso
this.parent.field4.setfocus()
yada yada
Otherwise
this.parent.field29.setfocus()
EndCase

RETURN .T.

The setfocus does its thing and the when of the selected field fires
and then the field1.valid goes off again. (Which has some nasty side
effects as the valid decides if the input is valid and if so does some
things that do not bear repeating.

I made up a test form with only three fields and code in the various events to track things, thinking something in my program had messed up things. It works the same in a one screen three field program. Any hints? SHOULD there be a
NODEFAULT?

Thanks for any input. I am going nuts!
Weldon Adair
Adair Software Corporation
(561) 445-8091
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform