Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiation of an object
Message
From
02/12/2008 06:05:28
 
 
To
02/12/2008 05:24:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01365028
Message ID:
01365045
Views:
11
>I have seen code whereby a reference was created to the class library, and all objects within that library were "hung off" that reference, thereby allowing you to access all objects within that library from a single reference point. To be fair, I didn't say it was a native VFP command, but then I don't generally make assumptions and would have enquired further before racing off on a wholly unrelated tangent.

I bet you haven't seen a code like that. I'm quite sure, that you missunderstood something.
It is impossible to instantiate a whole classlib with a single command, it wouldn't even make sense.

I think I understand what your mistake is.
You simply mixed up "instiating a whole classlib", with
"instantiating a class, that provides references to other (maybe all) objects, whose classdefinitions are stored in the same classlib".

So if your initial class or object provides references to other objects as members, all these other objects must have been instantiated somewhere at a certain time. I would bet somewhere during the creation process of the initial class.

Calling this "instantiating a classlib" (which is nonsense) has probably guided some readers of your question into the wrong direction.
Holger Vorberg
Germany
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform