Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createobject('myform') - form flashes breifly
Message
De
11/10/2002 20:10:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00710557
Message ID:
00710576
Vues:
15
Chris,

I think declaring frmForm as public is putting a band-aid on the problem. Use DO FORM, or if you need an object reference for some reason (IOW, using createobject()), you can create a form manager class for this purpose. If you create the form manager object in your main program, it will be PRIVATE by default, which means it will be visible throughout.

Then from your menu, you would call something like oForms.newForm("form1") to load a new form. Of course you would have to design a forms manager class, but it would be worth the effort.

Instead of the forms manager being a standalone object, it could be an object that belongs to _SCREEN. I believe George Tasker takes this approach with his manager classes.

>Thank you also - Loy replied suggesting I try public frmForm and that seems to work - but I will also try your suggestions too...
>
>Thanks again!
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform