>I meant an easier one:) Using plain afields() to create a cursor with same structure is dangerous.
>
>select * from customer into cursor xx nofilter
>use in 'customer'
>use dbf('xx') in 0 again alias 'customer'
>use in 'xx'
>
>Cetin
Thanks... Did you read Sergey's solution. That's one is so interesting...