>SET SAFETY OFF
>COPY FILE (anxFullPth) TO "DADOS\ENVIO.DBF"
>SET SAFETY ON
>
>I have I message "file is in use"
>
>Can this be because the envio.DBF is a cursor of my form ?
>If so, is it possible to disable de cursor of the form, and then enable it again ?
SET SAFETY OFF
Use in select('envio')
COPY FILE (anxFullPth) TO "DADOS\ENVIO.DBF"
SET SAFETY ON
NB! You should always give cursors names which makes it easy for you to distinguish them from tables, for instance curEnvio.