Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate() on a built field name
Message
De
18/01/2006 10:04:47
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
18/01/2006 06:24:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01087596
Message ID:
01087968
Vues:
24
>>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.

I wish it did fire an error!

>
>In VFP it is not really the case to do the precise ones on the syntax,
> considering that it is everything one chaos

It is safer and easier to use the functions as documented. Everything is not chaos. It is more chaotic if every possible use of every function is exploited.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform