Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WAIT WINDOW clears property
Message
From
19/09/2019 14:04:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
WAIT WINDOW clears property
Miscellaneous
Thread ID:
01670957
Message ID:
01670957
Views:
81
I spent this morning tracking down a really weird problem. I've found a solution, but I'm hoping someone can help explain why.

A property of a form was unexpectedly getting cleared (that, is set to the empty string), but only under certain circumstances and only with the Debugger closed. When I traced the code or even just had the debugger open so some DEBUGOUTs could work, the problem didn't occur.

That meant I had to track it down via logging to a text file. I kept adding logging until I found the culprit. The line of code causing this property to clear was:
wait window timeout 1 'Record saved.'
At the end, I had logging immediately before and immediately after that line and that was when the property changed. Comment that line out and the problem goes away. As I write this, it occurs to me to try it without the timeout clause (maybe add a WAIT CLEAR later on).

Anyone have any thoughts about why a WAIT WINDOW would have any affect on the value of a form property?

Tamar
Next
Reply
Map
View

Click here to load this message in the networking platform