PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 create is selected by 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