Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
>Ciao Fabio
>
>>>>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.
>
>ADDPROP adds a new property and can set a new value. Using ADDPROP again to update an existing property should crash since the property already exists. STORE updates an existing property. ADDPROP is neither "obvious" nor "clearer" no matter how fast it is.
Ciao Mike,
why you write this ?
Now ADDPROP() and object.addproperty() doesn't fire an error and it update
a exixsting property.
In VFP it is not really the case to do the precise ones on the syntax,
considering that it is everything one chaos
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only