If "TempFile" is a variable, you should select it as follows:
select (TempFile)
>I have created a template.dbf. In the fields of the template are the names of tables I would like to select as the app executes. As the app proceeds through the template, it loads a field into variable named TempFile. I would like to be able to use the variable to select the table that is named in the alltrimmed(template field) and passed to TempFile . . .. like this
>
>Select TempFile
>
>Is there a slick way to allow me to do this?
>
>As it is, the app crashes on the select statement. Debug shows the contents of TempFile to be correct but with quotes.
>
>Each table has a workarea assigned.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)