Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WAIT WINDOW clears property
Message
De
19/09/2019 14:04:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
WAIT WINDOW clears property
Divers
Thread ID:
01670957
Message ID:
01670957
Vues:
79
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform