|
|
|
|
ceRemoveDir (Function) In french: ceRepSupprime Deletes a directory from the Mobile Device (Pocket PC) connected to the current computer. Remark: 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).
// 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. If an error occurs, you can get the details of the error with 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: | | ceReadOnly | Also 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. | ceRecursive | The 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 ceRemoveDir and fRemoveDir have equivalent operating modes. 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|