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.
OffThere is no place like [::1]