Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serious REQUERY() Bug Update LP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816081
Message ID:
00816112
Views:
24
Hi Garret,

Remember we talked about that, and I TOTALLY agree. My purpose in the sample code was to show the problem. However, if you look at almost all code from books, MS, magazines, and here you will find that rarely if ever is REQUERY used in the lnResult=REQUERY(lcAlias) mode.

As for our own shop, we do check return values. That is why it was so hard to get to the bottom of this, since we were only hitting the error 2% of the time. If you lose the return value i.e. =REQUERY(), you can reproduce the problem much better.

That is the ONLY reason we didn't check for return values in the sample code. Garret, this bug was a a be-atch to reproduce, so I wanted to be as clean as possible. Had I used lnResult=REQUERY(lcAlias), you might not have seen it to begin with....it takes alot more effort. However, I can tell you that with a live deployment, lnResult=REQUERY(lcAlias) and IF REQUERY(lcAlias) < 1 fails enough for the users to notice.

Cheers,
Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform