Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know my client object is not terminated?
Message
 
 
À
04/11/2001 21:07:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00577185
Message ID:
00577357
Vues:
12
>Hi,
>Thank you your info.
>Yes, I understand what your are trying to tell me. However, If user just restart the machine , will VARTYPE() still return "O" when I use VARTYPE() to check the object reference?
>
>Thank you

John,
Yes it will. However, when you attempt to access a PEM of the object, most likely you will get a COM error to the effect that "The RPC server is no longer available.".

Use Type("MyObject.SomeProperty") to check the value of a property of the object instead of the object itself. TYPE() has more robust error checking than VARTYPE() and should be used more often in COM/DCOM situations, IMO. You will get fewer errors cropping up.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform