Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pemstatus vs amembers
Message
De
30/11/2010 05:28:22
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01491017
Message ID:
01491050
Vues:
54
Hi Rick,

(^.^)

the syntax of VARTYPE vs TYPE is clear.

The orignal must use literals, because ADDPROPERTY, PEMSTAT AND ASCAN need something to test.
So this seems to be a problem of a single operation with a single property. In this case one can ask VARTYPE for the property. To squeeze the property into a extra variable might not be usefull here. (We do not argue about the bytes we need for a literal instead of storing the literal to a var, o.k?)

Anyway, a plain ADDPROPERTY() without any if is my first choice as written in my first message. Maybe my english was not clear enough to find so many repeating it ....

(;.;)

Agnes

>VARTYPE() only works off instances not of string based expressions. The original example uses string names for the property and that doesn't work with VARTYPE() unless you use macro substitution which would defeat any perf benefit you'd get over TYPE() in the first place.
>
>+++ Rick ---
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform