Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object MyForm is not found.
Message
From
19/04/2000 04:42:21
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00360757
Message ID:
00361178
Views:
15
>>Thanks Jim,
>>I have solved the problem with the show method.
>>MyForm.Show
>>
>>But when i dont use public variables i cant see the form in the debugger and
>>When i use MyForm.Show i recieve this error:
>>Object MyForm is not found.
>>Only when i use public variables i dont recieve this error and can see the form in the debugger.
>
>Cemal,
>
>A minor corection, it is only when you use variables that DO NOT GO OUT OF SCOPE. PUBLIC variables are like using a shot gun to shhot a fly. You can use Private variable that are declared in teh proper place to be scoped for the time fram that you need them. Even better is to use a fomr manager object that holds the refernce in a property, that way as long as the fomr manager is there the reference is there. If you don't like those then use the _screen.Forms() collection, but do not use PUBLIC variables. Using a public variable is like using cyanide to stop your baby from crying.

Thanks Jim,

I can see the form in the _screen.forms() collection.
But i cant do anything with the form.
I cant set any property.
I cant run any method.

Can you show me a way how i can see the form in the debugger without using public variables.

Otherwise i must use cyanide to stop my baby from crying.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform