Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I add an object to a class at design time?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01018288
Message ID:
01018441
Vues:
14
John,

What is the BaseClass of object A? If the class is derived from custom you can't drop a class another class into it at design time. This is the primary reason I used Container as the baseclass of my generic cObject class.

>Thanks Fred, but I've alredy done that. I'd like to avoid needing to define object references for each child.
>
>I have an object A that has objects B and C added using ADDOBJECT in A's INIT() at runtime.
>
>I'd like IntelliSense to have access to B's and C's Methods/Props at design-time without needing to define the individual child objects.
>
>i.e.:
>LOCAL A AS classA of classlib
>A=NEWOBJECT("classA","classlib")
>
>A.B.(IntelliSense drop-down)
>
>instead of
>
>LOCAL A AS classA of classlib
>A=NEWOBJECT("classA","classlib")
>LOCAL B AS classB of classlib
>B=NEWOBJECT("classB","classlib")
>
>B.(IntelliSense drop-down)
>
>and then cut-and-paste to:
>
>A.B.Bproperty
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform