Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add an element to a property?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to add an element to a property?
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01315152
Message ID:
01315152
Views:
56
Hi,

I have this code that creates a property oTableInfo and adds elements and values from the cursor to this property:
toObject.AddProperty("oTableInfo", "Empty")
SELECT (lcCursorName)
SCATTER NAME toObject.oTableInfo
I need to add another element (I am not sure if this is the right term though - maybe it should be "collection") to this property (oTableInfo). For example, I want to be able to have a new element (MY_NEW_VALUE) and set the value to it as following:
toObject.oTableInfo.my_new_value = "Some Entry"
How do I add element "MY_NEW_VALUE" to the oTableInfo?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform