Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object MyForm is not found.
Message
De
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:
00360777
Vues:
8
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,
>
>First absolutely NO you don't need any public variables.
>
>First the Activate event does NOT activate a form. The Activate is an event that fires automatically when a form is activated, calling it only runs the code it does not make the form active. To actiavte a form you must SetFocus to one of the controls in the form.
>
>As for the name of your form, your form has a name property and there is also an object reference to the form. These are NOT the same thing.
>
>
>DO FORM MYForm NAME MyForm
>
>
>Will create a form using the MYForm.scx file and give it an object reference of MyForm.
>
>
>DO FORM MyForm
>
>
>Will create a form from the MyForm.scx file and VFP will assign an object reference to it. If all is ok the reference may be MyForm, but then again it may not. Using this syntax you can always refer to the form using the _SCREEN.ActiveForm property when the form is the currently active form or by using _screen.Forms() collection to find the form whose Name property is MyForm.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform