/
Disconnect (Method)
Disconnect (Method)
ISession::Disconnect
Remove the connection between your application and a QWS3270 session.
Function Disconnect([Session As String = "A"]) As Long
Parameters
No | Name | Type | Optional | Default | Description |
---|---|---|---|---|---|
1 | Session | String | Yes | "A" | |
Return Code | Description | ||||
JGS_OK | Success | ||||
JGS_PARAMETERERROR | Missing or invalid parameter | ||||
JGS_NOTCONNECTED | Application is not currently connected to the specified session | ||||
JGS_SYSERROR | The function failed due to a system error |
Remarks
After calling this function, other functions that require a connected session are not valid and should not be called. Your application should disconnect from all connected sessions before exiting
Sample Code
Dim myString as String
Dim result as Long
myString = "E"
result = sess.Disconnect(myString)
Dim result as Long
myString = "E"
result = sess.Disconnect(myString)
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.
, multiple selections available,
Related content
Disconnect_(Method)
Disconnect_(Method)
More like this
IApplication Close (Method)
IApplication Close (Method)
More like this
Connect (Method)
Connect (Method)
More like this
Connect_(Method)
Connect_(Method)
More like this
ISession_Overview
ISession_Overview
More like this
ISession Overview
ISession Overview
More like this