Hi Paige,
I know, you already got your answer, but I'd like to emphasize: DON'T USE MACROS, if not needed! This is my rule of thumb. In your case name expression should work fine. Read FAQ here about macros, evaluate and name expressions. Also go to Documents section here and review the Document: VFP Do and Don'ts.
>Hi All,
>
>The following command works fine:
>
> Append from c:\mydocu~1\mydown~1\download.txt delimited with character ","
>
>But this following command:
>
> APPEND FROM &lcSelected DELIMITED WITH CHARACTER ","
>
>generates the error: "command contains unrecognized phrase/keyword". In Debug the "&lcSelected" displays the appropriate path/file name; but expanded:
>"c:\my documents\my download files\download.txt"
>
>I get the path from: lcSelected = GETFILE("TXT")
>
>I'm working in VFP 5/6.
>
>Is there some syntax rule that I can't use a macro in the Append From command? Suggestions will be appreciated. TIA.
>
>Regards,
>
>Paige
If it's not broken, fix it until it is.
My Blog