ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Creating a directory
  • Creating a directory
fMakeDir (Example)
Creating a directory
Reports and Queries The following code is used to create a directory.
// Declare the variables
DirectoryToCreate is string
ResCreate is boolean
// Select the directory to create
DirectoryToCreate = "C:\MyDirectory"
// Create the directory
ResCreate = fMakeDir(DirectoryToCreate)
// Display an error message if the creation was not performed
IF ResCreate = False THEN
Error(ErrorInfo(errMessage))
ELSE
Info("The directory was created")
END
Creating a directory
Reports and Queries The following code is used to create a directory. The directory to be created is selected with fSelectDir.
// Declare the variables
DirectoryToCreate is string
ResCreate is boolean
// Select the directory to create
DirectoryToCreate = fSelectDir("", "Select the directory to create")
// Create the directory
ResCreate = fMakeDir(DirectoryToCreate)
// Display an error message if the creation was not performed
IF ResCreate = False THEN
Error(ErrorInfo(errMessage))
ELSE
Info("The directory was created")
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