Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP COM GetObject
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00190683
Message ID:
00190745
Views:
14
GetObject work only on objects that implement a special COM interface.

VFP objects do not support this. Multi-Use objects are task specific.

+++ Rick ---


>I try to retrieve a reference to my VFP application when active with Word Basic and Word.
>
>
>Dim oMyApp As MyApp.Startup
>
>If Tasks.Exists("My Application")= True Then
> Set oMyApp = GetObject(, "MyApp.Startup")
> -> Runtile Error '429' ActiveX component can't create object
>else
> Set oMyApp = CreateObject("MyApp.Startup")
> -> This line is ok
>endif
>
>TIA
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform