Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a property to an object
Message
From
04/01/2017 12:15:01
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:
01646291
Views:
68
>>Few days ago I had this:
>>
FOR i = 1 TO oChild.DataParameters.COUNT
>>	cPar = oChild.DataParameters.GETKEY(i)
>>	xVal = oChild.DataParameters.ITEM(i)
>>*	addproperty(oChild, cpar, xval)
>>	oChild.ADDPROPERTY(cPar, xVal)
>>ENDFOR
>>
>>This code works as it is now. However, with the commented line used instead of oChild.AddProperty(), it did nothing. The property wasn't added.
>>
>>Is it that addproperty() function has some cases when it doesn't work? Is it because oChild has its own addProperty() method? I've always thought that addproperty() function can be used on anything that is an object.
>
>Never heard something like that.
>What is the base class of oChild?

Session.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform