Try this
Select Temp
? Dbf()
Select * ;
From temp ;
Into Cursor Temp
? Dbf()
and you'll see that foxpro creates new file but opens it with the same alias 'temp'
>Hi Sergey
>
>Thanks, that does indeed work. One liner!
>
>Just a question though: How is it possible to Select records from a cursor and write them back to a cursor of the same name? Although this clearly works I find it unusual/interesting that VFP would allow this. Why does the destination cursor not overwrite the source one?
>
>Thanks
>
>Jos
--sb--