>Sorry Cetin ( fast write )
>
>this is correct:
>
>CREATE CURSOR t2 (f2 I )
>RAND(3)
>FOR K=1 TO 500
>INSERT INTO t2 VALUES (100*RAND())
>NEXT
>SET FILTER TO f2=1
>GO BOTTOM
>SET FILTER TO
>BROWSE
>
>
>Fabio
No it's not. What you get is only the last record. A locate command supports continue and found. This doesn't.
Well suggesting skip -1 would be overkilling. You might not know if intention is doing a scan while...endscan or alike.
An index is the way to go IMHO. If no index exists creating an index with a dummy key does well (IMHO every table should have such an index) :
index on .t. tag myLocator
set order to tag myLocator descending
Cetin