Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pemstatus vs amembers
Message
From
30/11/2010 04:03:35
 
 
To
30/11/2010 03:20:57
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:
01491040
Views:
73
Hi Agnes,

>if yo go for the TYPE instead of PEMSTAT why not VARTYPE?

Tore gave you the main reason. Also, if you plan to use addprop, the variable name is usually
already in a string, so reusing that string like
lcProp = "_screen.Height"
if  TYPE(m.lcProp)=="U"
   adpproperty(_screen, m.lcProp, 100)
endif
makes the code less brittle than typing it with and without " or going other dynamic ways -
only a slight benefit, but I am prone to "finger stuttering" - see the line inside the if ;-)

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform