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

Click here to load this message in the networking platform