GetStatus_(Method)
Get information about window size, position, etc.
Function GetStatus(Session As String, win_stat As WindowStatus) As Long
Parameters
No | Name | Type | Optional | Default | Description |
---|---|---|---|---|---|
1 | Session | String | No | - | One character session ID |
2 | win_stat | No | - | Structure to receive status information | |
Return Code | Description | ||||
JGS_OK | The function was successful | ||||
JGS_NOTCONNECTED | Your application is not currently connected to any valid session | ||||
JGS_SYSERROR | The function failed due to a system error | ||||
JGS_UNAVAILABLE | The session is already in use by another application | ||||
JGS_PARAMETERERROR | Missing or invalid parameter | ||||
JGS_PSENDED | The session has ended |
Sample Code
Dim mySession as String
Dim result as Long
Dim stat as WindowStatus
mySession = "E"
result = win.GetStatus(mySession, stat)
If result = JGS_OK then
  stat.status = a 2 byte integer value that contains the status information
  stat.coords = the window coordinates
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.