Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VARTYPE() vs PEMSTATUS()
Message
 
 
To
08/01/2009 19:20:47
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01372210
Message ID:
01372213
Views:
18
>Is there any difference between these two functions - Dragan's anticipated comments aside - or advantage of one over the other?
>
>IF VARTYPE( THISFORM.tmrCheckMousePosition ) = 'O'
>
>
>IF PEMSTATUS(THISFORM.tmrCheckMousePosition,'O',3)
>
The second syntax is incorrect.

PEMSTATUS()

If you need to check for a property or a method, use pemstatus. Otherwise you may check with vartype. It all depends on what you're trying to do.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform