Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add an element to a property?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to add an element to a property?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01315152
Message ID:
01315152
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform