Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus in VALID sometimes works!?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00514105
Message ID:
00514440
Views:
12
>The VFP doc says that one cannot SETFOCUS in a VALID, RANGE-HIGH/LOW, etc. And yet, I have a form where I accidentally did this and Lo! it works most of the time, but fires an error "cannot setfocus in valid, ..." some of the time. I actually stepped through the code in VALID and watched it pass right over the SETFOCUS.
>
>Weird huh?
>
>-Arne

Could it be that Event Reading is not on at the moment the message does NOT appear ? -> at that moment you can do anthing and events (nor checks upon things) won't fire. And of course a Valid can be called explicitly...
Note that when Event Reading is off, some Event (triggers) will get buffered until it's On (Read Events), and you won't be able to find the logic in things happening.
Previous
Reply
Map
View

Click here to load this message in the networking platform