- Moving the file
- Renaming a directory
- Renaming an HFSQL file
- Managing errors
- Operating mode in Windows Vista (and later)
fRename (Function) In french: fRenomme Syntax
<Result> = fRename(<Path of file to rename> , <New file path>)
Remarks Moving the file If <Path of file to rename> and <New file path> contain the same file name but different access paths, fRename moves the file. Renaming a directory fRename can also be used to rename a directory. To rename a directory, the directory to rename must be different from the current directory of the application. Renaming an HFSQL file To rename an HFSQL file, use HChangeName.
Remark: From version 19, HFSQL is the new name of HyperFileSQL. Managing errors fRename generates an error in the following cases: - the file to rename does not exist,
- the file to rename is locked,
- the path of the file to rename is invalid,
- <New file path> or <Path of file to rename> is an empty string,
- the new file already exists.
Remark: This function operates on an empty file.
This page is also available for…
|
|
|
| |
| | b_renomear is boolean=fRename(SAI_Arquivo,SAI_ArquivoNovo) //frances b_renomear=fRenomme(SAI_Arquivo,SAI_ArquivoNovo)
mostra_arquivos()
//Blog com Video e Exemplo http://windevdesenvolvimento.blogspot.com.br/2016/03/curso-windev-arquivos-005-arquivos.html |
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|