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.
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