Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use classes from an Accpac DLL?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01340203
Message ID:
01340292
Views:
5
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform