Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ThisForm getting confused in MDI application.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00339141
Message ID:
00339173
Vues:
23
>I have a MDI application that is producing some strange behaviour (bit of a 'once upon a time' here).
>
>Basically, there is a navigator control (treeview on a form) which calls various forms. Behind everything there is a very complex framework. When you close a form, lots of work goes on in the background. If, while the form is closing, you click on the navigator control, an error is produced - here are the details.
>
>The error is that a property is not found. On debugging, I find that it is within a WITH ThisForm ... ENDWITH command-set. I check the value of ThisForm in the debugger and it is correct but my gut feeling is that it is getting confused as to which form ThisForm relates to and is trying to find the property/method on the navigator control.
>
>Any ideas? TIA,


WITH/ENDWITH keeps some kind of object reference around. Try your code without the WITH/ENDWITH and see if the problem goes away.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform