Hola:
Thanks for the reply
Hope you notice something strange in my code:
lcTabla = alltrim((ThisForm.Acgetdirectory1.txtDirectory.Value)) + ThisForm.aTablas(lnI)
if file(lcTabla)
select 0
use (lcTabla) exclusive
endif
The if statement is true (the file exists) and enters the code block within.
Regards
>Are you sure that you have actually USE mytable command in the compiled code?
>Maybe there is a comment line with continuation mark ";" right before it?
>USE mytable
In this case foxpro would consider the second line a comment too.
>