ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Changing the current drive
fCurrentDrive (Example)
Changing the current drive
WINDEVWindowsUser code (UMC) The following code is used to change the current drive. The path of the new current drive is specified by the user in an edit control (EDT_DrivePath).
In this example, we consider that the user enters the full path of the drive (e.g., A:).
// -- Click code of BTN_ChangeCurrentDrive
// Declare the variable
ResCurrentDrive is string
// Change the current drive
ResCurrentDrive = fCurrentDrive(EDT_DrivePath)
// Error?
IF ErrorInfo() = "" THEN
Info("The current drive is: " + ResCurrentDrive)
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

Last update: 08/22/2022

Send a report | Local help