Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Codage, syntaxe et commandes
>>>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement