Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VARTYPE() vs PEMSTATUS()
Message
From
09/01/2009 09:05:46
 
 
To
09/01/2009 09:01:08
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01372210
Message ID:
01372331
Views:
18
>Then why all the PEMSTATUS and VARTYPE stuff if TYPE is all you need?

PEMSTATUS() also lets you check whether a method exists before you call it. I use it a lot in framework code.

As for VARTYPE(), we have it because we asked for it. Using TYPE() correctly is tricky--do you need quotes or not? VARTYPE() is easier and faster, though it's meant only for cases when you already know the thing exists. I use it on parameters a lot.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform