Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Put a variable name in brackets, otherwise VFP will take the variable name itself as file name. That's the consequence of VFPs concept of commands in difference to functions with parameters. The RENAME command gives you the ability to specify file names, which have no space in them, without quotes, so every name, no matter if variable name or field name, will be taken 1:1 as file name. Putting it in brackets forces VFP to interpret the code as expression to evaluate, so the value of a variable is taken as file name.dbMark said:oldname = "currentname.txt"
newname = "changedname.txt"
RENAME (oldname) TO (newname)
This is the second part of the problem, even if you have overcome the first, Windows won't allow to put in a date with neither backslashes nor slashes, even though only a backslash is displayed as separator of directory and file names, Windows for example also understands C:/Windows/notepad.exe as a name, and therefore slashes are forbidden in file names, too.dbMark said:Windows won't allows certain characters in filenames: \/:*?"<>|