ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Attention : This is version 26 of this documentation page. This feature may have been changed or removed in a higher version.
Help / WLanguage / WLanguage functions / Standard functions / Mobile Device (Pocket PC) access functions
  • 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).
Remark: 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 if this function has generated an error, use ErrorInfo with the errMessage constant.
Component: wd260ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/26/2021

Send a report | Local help