Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VARTYPE() vs PEMSTATUS()
Message
De
09/01/2009 08:51:30
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01372210
Message ID:
01372327
Vues:
22
>>>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
Fil
Voir

Click here to load this message in the networking platform