One of the solutions:
Select * from yourtable into cursor cursorname
index on .... tag ...
Another one:
lctemptable="S"+sys(3)
use yourtable
copy to (lctemptable) with cdx
.....
.....
erase (lctemptable+".*")
>i want to create a cursor from a table called 'customer'
>but i want to keep the index inside because i want to do search with it
>
>
>exemple :
>
>
>my cursor name is : cur_customer
>
>
>select cur_customer
>set order to name
>seek(myvar)
>if found() then
>
>.....................
>
>
>
>how can i do that