This function block of the ⇘ CAA_File.library can be used to rename a directory and is optional for the different targets. Whether this function block is implemented or not is explicitly stated and encoded in the return value of the function ”FILE.GetProperty”(see description of ⇘ FILE.GetProperty). The directory cannot be renamed until access on the properties has been terminated via ”FILE.DirClose”. The function block can be used to move files or directories!
Input:
xExecute |
BOOL |
see: ⇘ “CAA 指南” |
sDirNameOld |
CAA.FILENAME |
Old directory name |
sDirNameNew |
CAA.FILENAME |
New directory name |
Output:
xDone |
BOOL |
see: ⇘ “CAA 指南” |
xBusy |
BOOL |
see: ⇘ “CAA 指南” |
xError |
BOOL |
see: ⇘ “CAA 指南” |
eError |
FILE.ERROR |
Error ID |