Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form object not exist but Screen Active Form does
Message
From
13/12/1999 14:55:24
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00302767
Message ID:
00302893
Views:
48
John,

I believe that you have provided a technically incorrect response.

I trust that you will correct it.

Just calling them as *I* see em.

Jim N

>Hi Harry..
>
>It would appear the variable reference you are using for the form has fallen out of scope. Therefore, the only reference available to the form when you are attempting to invoke the method is through _Screen.ActiveForm.
>
>You may want to place a break point on the form variable you are using to see when it falls out of scope... Just place a break point on when it changes value...
>
>HTH....
>
>>I have a global application object from which I call a method from whatever form is currently active. In one particular instance the the code falls over and tells me the relevant form does not exist. Yet the debugger shows '_screen.activeform.name' is indeed the form I'm trying to call and if I change the code (which I've done anyway) to call '_screen.activeform.mymethod' it works a treat.
>>
>>How this possible?
>>
>>Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform