Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1733
Message
From
03/06/2019 15:42:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01668856
Message ID:
01668887
Views:
58
Likes (1)
>Here I go again against the grain... I think it is a mistake to use "set classlib"; and the whole purpose of newobject vs createobject is to handle this, in my opinion.
>So, you either use newobject (method or function) without "set classlib" (my preferred way, in fact the only way I use it) or you use createobject (function) with "set classlib" (I only use createobject for activex, even when I know I could use newobject for it too), but there is no point in using newobject with "set classlib". I know from past discussions that there is some consensus here that I am wrong and "set classlib" is useful, but I am also stubborn :)

I'm decidedly on both sides of this :) (i.e. I'm a stereo type, working on both channels as usual). The framework classes get loaded in a series of set classlib and set procedure statements at some point in startme.prg; those get createobject()ed frequently and in many places. The local classslibs, i.e. those which contain a few related forms and any related objects, are newobject()ed, with class name and library stored in metadata. That way the set("classlib") and set("procedure") lists don't get too long. Which may be a ridiculously minuscule speedup with today's machines, but as they say, habit is a trouble, unhabit is two.

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