Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check to see if object exist
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00827566
Message ID:
00827569
Views:
15
>Hi Everyone,
>
>I'm try to check and see if a program is running on another computer use a object check. However, I get an Ole error saying the "Invalid class" during load method when assigning the object. Here how Im trying to check for it:
>
> Objtest= CREATEOBJECT("MYPRG.Tntest", "Machine2")
>
>Im looking to see if the procedure call "TnTest" for application "Myprg" is running or not on "Machine2"(computer name).
>
>Next I test to see if "Objtest" is an object or not. Here's where I get the error.
>
>Thanks in advance for any insight as to what I'm doing wrong.
>
Craig,

I believe that only NEWOBJECT() allows you to pass the name of a prg as a parameter. With CREATEOBJECT() you need to use SET PROCEDURE TO...
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform