Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>>Hi Fabio,
>>>
>>>That does not work for what I am doing. I already have the Proproties in the object, I just need to get to them to put values into them.
>>>Thanks anyway.
>>>Beth
>>>
>>
>>addproperty update a exist property, and it is faster respect to
>>the TO (expr) solution.
>>
>Interesting. Do you have some stats confirming that? I also haven't used this function before, but I just updated one piece of code to benefit from it.
not tests are necessary, because if the VFP's C++ implementation is correct
it is obvious that ADDPROP is more express of TO (...),
as ADDPROP() it is a more specific command. For this reason it is also clearer.
to read a variable property the correct way is : GETPEM
to write a variable defined property the correct way is : ADDPROP(),
of course, except if you want a error if the property don't exist.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement