This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 3, 2016, 4:58 PM
6 Posts

How to instantiate new object via COM class?

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 1

Please bear with me if this is an elementary question but I have very little experience using COM.

I am writing an agent to work with the Quickbooks and am trying to create a new instance of the QBSessionManager object but I can't quite get the syntax.  All their examples are in Visual Basic and are of the form:

Set QB = New QBSessionManager

So far I have the following Lotusscript:

Dim qbApp as Variant

Dim qbSessMgr as Variant

Set qbApp = CreateObject("Quickbooks.Application")

Set qbSessMgr = New qbApp.QBSessionManager

However, Designer doesn't like the line Set qbSessMgr = ... and won't save.  Any help would be greatly appreciated.

Jun 4, 2016, 1:02 PM
82 Posts
Remove New ...
Dim qbApp As Variant
Dim qbSessMgr As Variant
Set qbApp = CreateObject("Quickbooks.Application")
Set qbSessMgr = qbApp.QBSessionManager

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal