Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a property to an object
Message
From
04/01/2017 11:44:55
 
 
To
04/01/2017 11:00:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Miscellaneous
Thread ID:
01646287
Message ID:
01646290
Views:
71
Likes (1)
your code fails to create a property for the object oChild.(as commented) with addproperty() function.
if it works for addproperty method this assumes ochild is a valid object.

Foxhelp enumerates the cases when it does not work:
Addproperty function This does not apply to COM objects created with Visual FoxPro OLEPUBLIC classes.
ADDPROPERTY( ) does not work when using the FOR EACH command with object references.
However, you can use the AddProperty method instead of Addproperty function(as where your code successfull).
Previous
Reply
Map
View

Click here to load this message in the networking platform