Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yet Another VFP6 tip
Message
De
16/07/1998 16:49:17
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00117011
Message ID:
00118359
Vues:
17
>>
>>This function saves a lot of code when creating objects. You don't need to open all classlibs in the startup program yet you can create objects from those libraries by using the NewObject function.
>
>But aren't there some serious performance hits for this? I seem to remember something in FP Advisor to that effect.

Theoretically, the difference is just like between having a Set Procedure issued in advance, or saying "do this_proc in that.prg". The "That.prg" should be included into the search list; will it be included sooner or later doesn't matter much. I believe the other approach may be a bit quicker, because it's explicit, i.e. the search goes directly there. Therefore, NewObject() will look directly into the .vcx you name, instead of searching all the "Set classlib" libs in the list. Though, there'll be some delay while it opens, but the other way 'round you'd have the same delay while setting the classlib to it. No wonder difference isn't worth noting.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform