Disconnect

The Disconnect method is used in conjunction with the Connect method, to halt communication between the Host Automation Object and the currently connected BlueZone session.

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 bxhao = CreateObject( "BZWhll.WhllObj" )
UserId = "John"
Password = "Smith"
ResultCode = bzhao.Connect( "A" )
If ( ResultCode = 0 ) Then
   bzhao.WriteScreen Userid, 5, 63
   bzhao.WriteScreen Password, 6, 63
   bzhao.SendKey "@E"
   bzhao.WaitReady 10, 1
   bzhao.Disconnect
End If