Moisés
>>>>>>>>>>>>>
>I have a form and in it's dataenviroment a have a cursor
>The cursor has in it's "order" propriety a name of a .CDX file.
>And it works ok.
>>>>>>>>>>>>>What you indicate in the propertty is a tag name, not a cdx name (the cdx generally shares the same name as the table).
>>>>>>>>>>>>>
>1-Is it the correct way of indexig by a form ?
>>>>>>>>>>>>>Yes, it is OK. It is basically the same as if you opened your table and selected a tag (Order) in the Load() method.
>>>>>>>>>>>>>
>2- Wich is the best command to use in this case. Seek or locate ?
>>>>>>>>>>>>>Generally SEEK is better. But with proper Rushmore optimization, LOCATE can be very fast too.
If you need help on Rushmore, just ask or you could also look at the Fox Wiki:
http://fox.wikis.com/wc.dll?Wiki~UnderstandingRushmore~VFPEspero isto ajude a você.