Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
>>
FOR lnJ = 1 TO 10000
SET ORDER TO pID
SEEK(699)
SET ORDER TO
ENDFOR
>>
Hi Brien.
I wouldn't include the set orders in the above code snippet. You already set it before starting this loop. Further, this makes your test not merely compare SEEK against LOCATE.
Try adding SET COLLATE TO "MACHINE" before doing this. SP4 supposedly defaults to something else (?)
SEEK should be way faster than LOCATE.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only