Remove a directory. ──────────────────────────────────────────────────────────────────────────────
Syntax
GT_RmDir(<cDir>,[@<nError>]) --> lRemoved
Arguments:
<cDir> is the path of the directory.
<nError> is an optional parameter that must be passed by reference. If the directory can't be removed the DOS error code will be placed in this variable.
Returns:
If the directory was removed , GT_RmDir() returns true (.T.), if not it returns false (.F.).
Description:
GT_RmDir() can be used to remove a directory.
Examples:
// Remove a directory.
nError := 0 if !GT_RmDir("Knight",@nError) ? "Error =",nError endif