PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Deletes a directory from the Mobile Device (Pocket PC) connected to the current computer.
Note: The directory can be deleted only if the following conditions are fulfilled:
  • the directory is empty (except if the ceRecursive constant is specified).
  • the user has sufficient rights to delete a directory.
  • a connection is established between the current computer and the Mobile Device (ceConnect).
Example
// Delete a directory from the Mobile device connected to the current computer
ResDelete = ceRemoveDir("\MyFile\MyImages")
// Has a problem occurred?
IF ResDelete = False THEN Error(ErrorInfo())
Syntax
<Result> = ceRemoveDir(<Path of Directory to Delete> [, <Deletion Indicator>])
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. To find out the error details, use ErrorInfo.
<Path of Directory to Delete>: Character string (with quotes)
Full path of the directory that must be deleted from the Mobile Device connected to the current computer.
<Deletion Indicator>: Optional constant
Deletion Options:
ceReadOnlyAlso erases the read-only files and/or directories. If this constant is not specified, the function will return False if read-only files must be deleted.
ceRecursiveThe contents of directory and sub-directories are also deleted. If this constant is not specified, the directory must be empty in order to be deleted.
<Deletion Indicator> is empty by default. No option is selected.
Remarks
The operating mode of ceRemoveDir is equivalent to the operating mode of fRemoveDir.
The only difference is:
  • ceRemoveDir deletes a directory found on the Mobile Device from a WINDEV application.
  • fRemoveDir deletes a directory found on the Mobile Device only from a WINDEV Mobile application.
Components
WINDEVReports and Queries wd230ce.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment