Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet Another VFP6 tip
Message
From
16/07/1998 16:49:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00117011
Message ID:
00118359
Views:
18
>>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform