Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object MyForm is not found.
Message
 
To
18/04/2000 07:15:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00360757
Message ID:
00360800
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform