Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Coding, syntax & commands
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only