Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you add a property to an existing object?

Status
Not open for further replies.

Russ1005

Programmer
Dec 13, 2004
96
US
In VFP7, how do I add a property to an existing object called oFormData?
 
Most of the VFP base classes have an AddProperty method you can use at runtime. If oFormData's base class is one of those, you're set. If not, you will have to do it at design time by selecting New Property from the Class menu pad.

Starting with VFP8, you have the AddProperty() function which you can use to add a property to any object. This is especially handy for objects created with SCATTER NAME or using the Empty object, also introduced in VFP8.

pamela
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top