Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP COM GetObject
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00190683
Message ID:
00190745
Vues:
15
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform