PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Changing the current disk
fCurrentDrive (Example)
Changing the current disk
WINDEVWEBDEV - Server codeReports and QueriesWindowsAjaxUser code (UMC) The following code is used to modify the current disk. The path of the new current disk is entered by the user in an edit control (EDT_DiskPath).
In this example, we assume that the user enters the full path of the disk (such as A:).
// -- Click code on BTN_ModifyCurrentDisk
// Declare the variable
ResCurrentDisk is string
// Changing the current disk
ResCurrentDisk = fCurrentDrive(EDT_DiskPath)
// Error?
IF ErrorInfo() = "" THEN
Info("The current disk now is: " + ResCurrentDisk)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment