Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Set the window position, size, visibility, etc.

Function SetStatus(Session As String, win_stat As WindowStatus) As Long

Parameters

NoNameTypeOptionalDefaultDescription
1SessionStringNo-

One character session ID

2

win_stat

WindowStatus

No

-

WindowStatus structure containing 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
stat.status = 1  ' size window
stat.coords.x = 100
stat.coords.y = 50
stat.coords.cx = 500
stat.coords.cy = 350
mySession = "E"
result = win.SetStatus(mySession, stat)

...