The OnConnect event is generated when a connection is
established.
Syntax
Subobject_OnConnect ( [IndexAs
Integer] )
Remarks
The OnConnect event is generated when a successful
connection has been established with the server. To monitor the
progress of the connection attempt, use the OnStatus
event.