Discussion:
Rename Case
(too old to reply)
Beverly Howard
2010-05-14 16:30:55 UTC
Permalink
Recent experience (VFP9) using the FOXPRO RENAME command seems to always
result in the case of alpha characters showing up in lowercase... is
there any way to control this within foxpro?

In case it's related, the filenames in question begin with numeric
digits, so, one suspect would be the windows filename beautification
process.

Thanks in advance,
Beverly Howard
Pavel Celba
2010-05-14 16:56:32 UTC
Permalink
The solution is Win32API:

DECLARE integer MoveFile IN kernel32.dll string ExistingFile, string NewFile

? MoveFile("test.dbf", "TEST.dbf")
? MoveFile("D:\path\test.dbf", "D:\path\TEST.dBf")
* etc.
* Result is 1 ... success, 0 ... failed

P.C.
Post by Beverly Howard
Recent experience (VFP9) using the FOXPRO RENAME command seems to always
result in the case of alpha characters showing up in lowercase... is there
any way to control this within foxpro?
In case it's related, the filenames in question begin with numeric digits,
so, one suspect would be the windows filename beautification process.
Thanks in advance,
Beverly Howard
Beverly Howard
2010-05-14 16:57:26 UTC
Permalink
Thanks, much appreciated.

Beverly Howard

Loading...