Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VARTYPE() vs PEMSTATUS()
Message
From
09/01/2009 08:51:30
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01372210
Message ID:
01372327
Views:
20
>>>Not trying to stir anything up, just observing, OK? I think she gave you the right answer and you resisted it because she posted it. I see later in the thread Greg was given 3 stars for giving substantially the same answer, just with the IF/ENDIF code details fleshed out.
>>
>>Thanks for that insight.
>
>I knew I should have just said nothing. No problem. Move along, folks, it's all over, nothing to see here....

Yep.

>Actually on rereading the earlier posts, Naomi and Greg's answers were a little different. She said use VARTYPE() to query existence and PEMSTATUS() to interrogate properties/events/methods. He showed you how to use PEMSTATUS() to query existence. Personally I would not use PEMSTATUS() in that way, even though it works. That isn't the intent of the command.and may confuse someone who revisits the code later.

Yeah, Greg's code worked for me, but I'm still trying to figure out if there is some way to check for the existence of both variables and objects reliably without getting errors.
Previous
Reply
Map
View

Click here to load this message in the networking platform