>HI,
>
>in my program, i use GETFILE() to get a path & file name as below:
>
>MFILE = GETFILE()
>
>** result i put "C:\MY DOCUMENT FILE\SALES DEPT\my file.txt" for MFILE
>
>copy to &MFILE && <=== error on this line
>
>** a error message will appear on screen, it looks the folder name too long.
>
>what can i do ??
Just use name expression instead of macro, e.g.
copy to (m.mFile)
You also should check, if this variable empty before attempting to copy.
If it's not broken, fix it until it is.
My Blog