Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add an element to a property?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01315152
Message ID:
01315153
Views:
22
This message has been marked as the solution to the initial question of the thread.
Unless I'm missing something
ADDPROPERTY(toObject.oTableInfo, "my_new_value", "Some Entry")
>
>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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform