Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can make child abject available in OLE
Message
De
04/07/2003 16:09:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
How can make child abject available in OLE
Divers
Thread ID:
00807076
Message ID:
00807076
Vues:
83
I create an OLE PUBLIC object in vfp8, parent class custom.
During runtime I add a collection class to the ole object via addobject in the dosomething method.
The automation server runs fine but the client can not access new objects added to the ole server object.
Is there a way to make child objects available to the client ?

... access the server in scripting host or vb:

' create the ole server
set myole = createobject("oleserver.vfp8")
' add the collection object mycollection in the dosomething method of vfp8
myole.dosomething()
msgbox myole.mycollection.name 'displays "mycustom.mycollection", ok

msgbox myole.mycollection.count
' generates an error, the count property can't be accessed

thanks around
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform