PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Change the current directory
fCurrentDir (Example)
Change the current directory
The following code is used to modify the current directory. The path of the new current directory is entered by the user in an edit control (EDT_DirectoryPath).
// -- Click code on BTN_ModifyCurrentDir
// Declare the variable
ResCurrentDir is string
// Change the current directory
ResCurrentDir = fCurrentDir(EDT_DirectoryPath)
// Error?
IF ResCurrentDir <> "" THEN
Info("The current directory is now: " + ResCurrentDir)
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