IApplication StartSession (Method)
Starts an instance of QWS3270 with a predefined session. Â Only one session with any session ID can be open at one time. Â Be sure that the session you are trying to start does not have the same session ID as that of any other already open session!
Function StartSession(qws_path As String, sess_name As String) As Long
Parameters
No | Name | Type | Optional | Default | Description |
---|---|---|---|---|---|
1 | qws_path | String | No | - | Fully qualified path to QWS3270 application |
2 | sess_name | String | No | - | Name of an existing QWS3270 session |
Code | Description | ||||
JGS_OK | Success | ||||
JGS_PARAMETERERROR | Missing or invalid parameter or invalid session ID | ||||
JGS_CREATE_PROCESS | Unable to create new process for QWS3270 application |
Remarks
Specifying an invalid session name will not be detected until QWS3270 starts. In this case you will receive an error from the QWS3270 application.
Sample Code
Dim myPath as String
Dim mySession as String
Dim result as Long
myPath = "C:\QWS3270\qws3270p.exe"
mySession = "Library of Congress"
result = sess.Connect(myPath, mySession)
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.