Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Network:
Windows 2003 Server
Sergey:
"Try the interfaces that are implemented by classes that you're interested in."
I'm sorry - I don't understand your reply! Can you re-phrase it please?
I'm not sure if I am making enough sense in my description of the problem - but one again - there are classes being shown in the object browser, but they are not shown to me by the object I've created. For instance the class AccpacView - which I can only see in the object browser unders the classes tree, has many methods such as Open, Close, Fetch; and properties such as ViewID, RecordNumber. When I createobject only those methods and properties are revealed to me, not the "encapsulating" class.
My problem is I don't know how to use these many methods and properties, and my only code examples are from VB, where for instance a new "View" instance is created from the AccpacView class, which is then used as a parameter to open a specific view into one of the back-end tables. For example:
Dim OEORD1header As AccpacCOMAPI.AccpacView
mDBLinkCmpRW.OpenView "OE0520", OEORD1header
I don't know how to use one or more of the methods that I can see to make this AccpacView object - which I cannot see. And I need it as a parameter into the OpenView method (which I can see).
It may be just a matter of fooling around until I chance upon the correct method - in this case there are a number of methods exposed with the word View in them - OpenView, OpenView2, OpenViewExt, OpenViewInstance, OpenViewInstance2 - and one of them may very well return the AccpacView object I'm needing - but there is no documentation to tell me about that!
Thanks for your input...
Chris
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement