You use Name Expression (see help for details).
STORE "MyName" TO cFilename
COPY TO (cFilename)
>Help!
>
>How the heck do you save a table using a char variable for its filename ?
>
>Example:
>
>USE NAMES IN 1
>STORE "MyName" TO cFilename
>COPY TO cFilename.DBF <<<<--- Obviously doesn't work
>
>Desired result: Myname.dbf
>
>I am sure there is a simple solution, since this is a obvious common pratice.
>
>Any help would be appreciated...
>
>Scott Rands
--sb--