PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Error codes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Disconnects a network drive.
Example
// Déconnexion de la lettre réseau "E:"
ResDéconnexion is int = NetworkDisconnect("E:")
 
SWITCH ResDéconnexion
CASE 16
Error("Mauvaise valeur pour la déconnexion")
CASE 17
Error("Connexion en cours d'utilisation")
CASE 18
Error("Un fichier est ouvert, impossible de se déconnecter")
CASE 19
Error("Tentative de déconnexion sans connexion")
OTHER CASE
Info("Lecteur déconnecté avec succès")
END
Syntax
<Result> = NetworkDisconnect(<Drive Letter>)
<Result>: Integer
  • 0 if the disconnection was performed,
  • an error code (value greater than 0) otherwise.
<Drive Letter>: Character string
Network drive to disconnect, in the following format: "<Drive Letter>:".
Remarks

Error codes

The following error codes are returned:
  • 16: Wrong value for disconnection.
  • 17: Connection currently used.
  • 18: A file is opened, unable to disconnect.
  • 19: Attempt to disconnect without connection.
The message corresponding to the error code can be known thanks to the function ErrorInfo with the constant errMessage.
Component: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment