Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object MyForm is not found.
Message
 
À
18/04/2000 05:12:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00360757
Message ID:
00360770
Vues:
12
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