Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I Refer to a Custom Object Before its INIT is Finish
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00173320
Message ID:
00173325
Vues:
30
>>I have a Custom Object containing library functions that I use as a common routine for all my applications. During its INIT routine, I want to load another Custom Object, that I can later refer to as a separate object. This second object requires routines contained in the calling (first) library.
>>
>>However, I cannot refer to the library ("oLib") as an object, because the object variable is not yet created. Is there another way to refer to the library object, or do I need to create the second object outside of the library?
>
>Design issues are always interesting. :)
>
>I would go by having an object to hold the most used custom methods. You will be able to load this object at first so it will be available for all the other objects. I usually place those methods in my main object. Since this is the first object, all the other objects will have access to its methods.

Thanks, Michel.

The library object *is* the first thing being loaded. I was wondering if I could save myself a few steps during future development by only loading one custom object which, in turn, would load other library objects, too. However, it appears that each object needs to be loaded separately, if it will be depending on the contents of a previous object.

Thanks again!

Michael Reynolds
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform