Adams Basic Package
>
Adams View
>
View Function Builder
>
Design-Time Functions
>
Functions: R - S
> RENAME_FILE
RENAME_FILE
Renames a specified file. If successful, it returns a 0; otherwise, it returns a nonzero value.
Format
RENAME_FILE (File Name, New File Name)
Arguments
File Name
Text string containing the current file name.
New File Name
Text string containing the new file name.
Example
The following example illustrates the use of the RENAME_FILE function:
Function
RENAME_FILE("Test.mif.backup", "Test.doc")
Result
renames the specified file as Test.doc and returns a 0
Learn more about system functions
.
This site works best with JavaScript enabled