Specifications

OLE reference
146
Glink: API reference manual Gallagher & Robertson
The OnDisconnect Event
OnDisconnect()
This event is generated if the communication link goes down or gets
disconnected either by the host or by the user.
VBA Example:
Private Sub Gl_OnDisconnect()
List1.AddItem ("OnDisconnect received")
End Sub
The OnTurn Event
OnTurn()
This event signals that the host has finished sending data and is waiting for user
input. It will normally indicate that the host has sent a new screen and that all the
data has been processed by Glink. The detection of the turn depends on the
communications interface being used and the emulation mode. If the emulation
mode is FORMS or TEXT or the communications interface supports the notion
of TURN (e.g. Ggate, TNVIP, TN3270, TN5250), then it will be immediate,
otherwise the turn will be triggered 500 milliseconds after the host has stopped
sending data. In both cases, the turn will only be generated if the keyboard is
unlocked.
VBA Example:
Private Sub Gl_OnTurn()
Dim i, n As Integer
List1.AddItem ("OnTurn received")
Text2.Text = Gl.Screen.ScreenText
Text3.Text = Gl.Screen.Status.StatusText
If Gl.Screen.FormsMode = True Then
i = 0
n = Gl.Screen.FieldCount
While i < n
AddField (i)
i = i + 1
Wend
End If
End Sub
The OnData Event
OnData()