Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ThisForm getting confused in MDI application.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00339141
Message ID:
00339173
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform