To reestablish communication with the same BlueZone Session or a new BlueZone session, use the Connect method. See the Connect
method for more information.
Parameters
None.
Returns
0 for success; or a non-zero error code. Refer to
Error codes for a complete listing of error code descriptions.
Remarks
The Disconnect method must be used in conjunction with the Connect method as shown in the following example.
Example
Set Host = CreateObject( "BZWhll.WhllObj" )
UserId = "John"
Password = "Smith"
ResultCode = Host.Connect( "A" )
If ( ResultCode = 0 ) Then
Host.WriteScreen Userid, 5, 63
Host.WriteScreen Password, 6, 63
Host.SendKey "@E"
Host.WaitReady 10, 1
Host.Disconnect
End If