>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao