Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Benefits to create object -vs- do form
Message
De
23/08/2000 14:50:57
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
23/08/2000 13:01:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00408330
Message ID:
00408410
Vues:
13
I don't think it's very significant either way. I do my own DataEnvironment either whether form or class.
IF IsForm
   DO FORM (m.FormName) WITH &FormParameters. NAME oForm LINKED NOSHOW
ELSE
   oForm = CREATEOBJECT(m.FormName, &FormParameters.)
ENDIF
oForm.Show()
The main benefit is you can subclass and CREATEOBJECT doesn't pull in a DE. (which may be a disadvantage for you). You can always make it a class if you want later. I do both and I don't really care either way.


>Having had no formal training in VFP I find that I use "do form" instead of "create object". However, a lot of the code that other people have written uses "create object". Can anyone briefly show me the benefits of create object over do form
>
>Alan Wyne
>Rollpak Corp
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform