Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus in VALID sometimes works!?
Message
From
04/06/2001 23:43:58
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00514105
Message ID:
00514935
Views:
13
>>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.
>
>Arne;
>
A case in point - I had one hidden in there by mistake... the code kept executing... on the surface... the user kept working.... on the surface...
everything BUFFERED... completely... over 100 entries... the user shutdown for lunch.. came back... voila!!! no data from the previous hour was saved... it was not a 'hard' error - it was not reported to the errorhandler because it was not reading the code line... took me some time to track down that one...

SET FOCUS and VALID do not mix - EVER...

Just my 0.02....

Ric
Previous
Reply
Map
View

Click here to load this message in the networking platform