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