Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is LostFocus firing ?
Message
 
To
23/09/2004 11:24:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00945392
Message ID:
00945400
Views:
18
>I have a dropdown list. It has code in its Valid event. If I subclass the Lostfocus event and put any code in it whatsoever, even something as simple as SET STEP ON, when I change value in the list, the Valid is skipped and Lostfocus fires?
>
>Any ideas what might be going on here?
>
>Thanks,

I just did a little test, and valid fires before lostfocus. In my own experience, VALID is, at the least, difficult to understand and seems to have a mind of its own.

FWIW: I use WHEN to constrain access to the higher tabstops, and lostfocus to validate the current control.

.txtTabOne.Lostfocus
*** check to make sure value is okay
*** if not okay, blank or empty .txtTabOne.Value and then .txtTabOne.Setfocus

.txtTabTwo.When
return !empty(.txtTabOne.Value)
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform