Home > Language Reference > Classes > StreamExg
Disconnect Method
Closes a connection.
Syntax
Public Sub Disconnect()
Remarks
This method sends all the data written in an exchange stream to a remote handheld device then closes the connection. Using this method on an exchange stream that has not been opened or which has already been closed has no effect and noteably does not cause an error.
It is not necessary to close the StreamExg received as a parameter when handling the ExgReceive event from the Application object.
The Autograph sample or MiniLauncher shows how use the StreamExg class for data exchange.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |