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:
01019038
Views:
22
John,

>That's a great idea...I would never have thought of it, and it does work! I WAS using a Custom-class as the base for my class. It's a little annoying that we need to go the Container route.

The other thing I did to my cObject was drop a label into it so that I could set the .Caption to "name" the class in a readily visible way to make it easier to distinguish one from another. You can also color code the containers, so they do come in handier.

>Now, as far as CONDITIONAL member inclusion and IntelliSense, is there any way of Adding/Removing member-objects before runtime? Like during the object declaration in design-time?

I'm not exactly sure what you are asking.

You can do designtime containership by just dropping the other classes into your container, then you'll have full Intellisense.

You can AddObject()/RemoveObject() at runtime all you want.

Intellisense support on dynamically added objects still has issues IMO, although the new WITH support does help a little more than it used to.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform