ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Changing the current directory
fCurrentDir (Example)
Changing 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

Last update: 08/23/2022

Send a report | Local help