Hi Carla ---
Ummm....is it possible you're not SELECTing the right table before the set order? Try replacing your USE line with:
USE contador IN 0 ORDER TAG numero
>I have a table with one tag of primary type (compoud .cdx index file) , I open the table , set the order index and use the command SEEK to find information, but I have the following error message "Variable "Numero" do not exist". The "numero" is the index tag name.
>I do not use dataenvironment, I open the table programatically.
>
>Use contador in 0
>set order to numero && Tag name
>seek 6
>
>I do not have this problem if I use the same code through command window.
>
>Thanks
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05