Translate page

Quick_Start



Before QWS3270 Automation's objects can be used from Visual Basic you should set a reference to the application's object library. Once the reference to an object library has been set, Visual Basic recognizes the objects in that library. You can view those objects and their properties and methods in the Object Browser.

To set a reference to the QWS3270 Automation object library perform the following steps:

  • In the Visual Basic editor open a new or existing module.

  • On the Tools menu, click References.

  • In the References dialog box, check the boxes next to QWS3270 Automation 1.0 Type Library.

To determine which OLE Automation objects are available from QWS3270 Automation, set a reference as described above, open the Object Browser, and choose QWS3270 Automation from the Libraries drop-down list box. All of the objects in the QWS3270 Automation object model will be visible in the Modules/Classes list.

To use the QWS3270 Automation object, use code similar to the following:

Dim screen as QWS3270Automation.IScreen
Set screen = new QWS3270Automation.IScreen
If screen is Nothing then
 ' handle error
Else
 screen.StartSession("C:\temp\qws3270p.exe", "Library of Congress")
End If




QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.