PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Invalid connection
  • Managing errors
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Used to find out the status of the connection between the current computer and a Mobile Device (Pocket PC).
Versions 20 and later
Note: this function is available in 64-bit mode.
New in version 20
Note: this function is available in 64-bit mode.
Note: this function is available in 64-bit mode.
Example
// 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:
ceStatusConnectedActive connection
ceStatusInvalidConnectionInvalid connection
ceStatusDisconnectedInactive connection
Remarks

Invalid connection

To restore an invalid connection (ceStatusInvalidConnection constant), you must:

Managing errors

Caution: ceConnectionStatus returns no error code. To find out whether an error was generated by this function, use ErrorInfo associated with the errMessage constant.
Components
WINDEVReports and Queries wd230ce.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment