Maybe not question, just asking for confirmation.
When one runs a SCAN on a DBF, the process begins from the "top" of the table.
IOW, it is ridiculous to.....
LOCATE FOR [Abashed Goat] $ cItem
SCAN
<some code>
ENDSCAN
The "LOCATE FOR" is superflous, as the pointer will move to the top of the table, and begin processing there, once the SCAN command executes.
*****
SCAN will follow the index order (if an order has been set), instead of the "natural order" or the table.
ie SET ORDER TO cCity, SCAN will begin at the "lowest" value of cCity...[Aaronsberg]...instead of the first record entered in the table.
TIA and Regards - Wayne
When one runs a SCAN on a DBF, the process begins from the "top" of the table.
IOW, it is ridiculous to.....
LOCATE FOR [Abashed Goat] $ cItem
SCAN
<some code>
ENDSCAN
The "LOCATE FOR" is superflous, as the pointer will move to the top of the table, and begin processing there, once the SCAN command executes.
*****
SCAN will follow the index order (if an order has been set), instead of the "natural order" or the table.
ie SET ORDER TO cCity, SCAN will begin at the "lowest" value of cCity...[Aaronsberg]...instead of the first record entered in the table.
TIA and Regards - Wayne