Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do FORM vs. createobject()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00859255
Message ID:
00859294
Vues:
14
>>>Is it more efficient to 'Do form' or createobject where a form is a class?
>>>I am referring to the speed in terms of loading as well as the useage of resources, etc.
>>>TIA.
>>
>>Never tried to compare them this way. IMHO, the main reasoning between these two methods of form instantiation is not the instantiation speed, but rather in the advantages you get with one or another. So, the choice should not depend on instantiation speed, but rather on more important factors like inheritance from certain form class, or having the Dataenvironment available in the form. You just do what you need to do.
>
>Nick,
>
>I have been using the Do Form.
>I was concerned that maybe I was missing the boat in terms of efficiency, etc.
>Thanks once again.

Well, it is easy to perform the speed test anyways. Just create a form and a form class with a couple of thousand controls and run the tests on a clean environment (restarting VFP). And tell us what you find. :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform