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.
  • Managing the errors
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
Returns or modifies the current disk.
JavaPHP In this version, the current disk cannot be modified.
// Connaître le disque en cours
ResDisqueEnCours = fCurrentDrive()
Syntax

Find out the current disk Hide the details

<Result> = fCurrentDrive()
<Result>: Character string
Path of the current disk in the following format:
  • <drive letter>:. For example: "A:". The drive letter is written in uppercase character.
  • UNC path. For example: "\\<ServerName>\<ShareName>".
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax

Modifying the current disk Hide the details

<Result> = fCurrentDrive(<Path of New Current Disk>)
<Result>: Character string
Path of the current disk in the following format:
  • <drive letter>:. For example: "A:". The drive letter is written in uppercase character.
  • UNC path. For example: "\\<ServerName>\<ShareName>".
<Path of New Current Disk>: Character string
Path of the new current disk (up to 260 characters) in the following format:
  • <drive letter>:. For example: "x:".
  • UNC path. For example: "\\<ServerName>\<ShareName>".
Remarks
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax

Managing the errors

Caution: fCurrentDrive returns no error code. To find out if this function generated errors, use 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