Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pemstatus vs amembers
Message
From
30/11/2010 05:28:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01491017
Message ID:
01491050
Views:
53
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]
Previous
Reply
Map
View

Click here to load this message in the networking platform