If you were working in an xBase table, you would use GotoKey or GotoNearest, but not in a Paradox table. Since you've got a Key on Items, you'll use either FindNearest or FindKey. If you have the full value of the Item you're searching for, you'll use FindKey like this:
Code:
MyTable.FindKey('ITEMS',['Some Item Value']);
Where 'ITEMS' is the name of the field that's indexed and 'Some Item Value' is the value that you're searching for.
The FindNearest method looks similar:
Code:
MyTable.FindNearest('ITEMS', ['Some Item']);
This will find the first value in ITEMS that starts with 'Some Item' or, if there is no value found, place the record pointer on the first record after where it would be.
It's set up this way so that you can search through indexes that have multiple fields involved. In Paradox, unlike xBase, indexes are not formed by adding fields together (i.e., Field1 + Field2), they're formed by selecting the individual fields for the index. In this way they are similar to client/server database indexes. FindKey and FindNearest are set up to work specifically on this kind of index. So, if you need to find a record in a table with a multi-field index, the method call will look like this:
Code:
MyTable.FindKey('FIELD1;FIELD2', ['Field 1 value', 'Field 2 value']);
-Dell