Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiation of an object
Message
De
02/12/2008 06:05:28
 
 
À
02/12/2008 05:24:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01365028
Message ID:
01365045
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform