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:
00859337
Vues:
16
>>>>>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.
>>
>>Sometimes it seems PRG classes are easier to access (they're in a text document, and not embedded in a class inspector/container). They have a smaller "source" foot print. Also, they are less subject to corruption than an SCX. Like Nick, I don't think it matters - the beauty of VFP is that we can intermix PRG and ?CX classes seamlessly.
>
>Terry,
>Are you suggesting that a convert a class that is a form with a grid to a .prg?
>Don't I lose my ability to visually modify it afterwards?

Grid is not a control that is well suited for a PRG, unless its a flash form without methods - except release:-). Visual seems best for a grid.

A few years back I moved from mostly grids, to ListViews. My Listviews are PRG classes.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform