Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object MyForm is not found.
Message
 
À
18/04/2000 07:15:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00360757
Message ID:
00360800
Vues:
12
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform