General information
Category:
COM/DCOM and OLE Automation
Title:
How can make child abject available in OLE
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only