|
|
|
|
- Invalid connection
- Managing errors
ceConnectionStatus (Function) In french: ceEtatConnexion Used to find out the status of the connection between the current computer and a Mobile Device (Pocket PC). Remark: this function is available in 64-bit mode.
// Establish a connection with the Mobile Device ceConnect() // Process ... // Status of connection? ResConnectionStatus = ceConnectionStatus() SWITCH ResConnectionStatus CASE ceStatusDisconnected Info("The connection was not established.") CASE ceStatusConnected Info("The connection is active.") CASE ceStatusInvalidConnection IF YesNo("The connection was stopped.", ... "Do you want to restore the connection?") = Yes THEN // Disconnect the invalid connection ceDisconnect() // Reconnect ceConnect() END END
Syntax
<Result> = ceConnectionStatus()
<Result>: Integer constant Connection status:
| | ceStatusConnected | Active connection | ceStatusInvalidConnection | Invalid connection | ceStatusDisconnected | Inactive connection |
Remarks To restore an invalid connection (ceStatusInvalidConnection constant), you must: Caution: ceConnectionStatus returns no error code. To find out if this function has generated an error, use ErrorInfo with the errMessage constant.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|