Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I add an object to a class at design time?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018288
Message ID:
01018441
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform