Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seek a record from a multiple index file
Message
 
 
To
18/12/2000 16:04:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00454813
Message ID:
00454843
Views:
19
>Aloha from Hawaii,
>
>My question is probably simple it's just that I can't figure it out:
>
>I have a table that has an index on a job shift number and worker code.
>I want to seek a record based on the job shift number and worker code.
>What command do I use to seek for this record?
>I think I'll use the SEEK command but how is the syntax for this multiple field search?
>
>Lost in Hawaii,
>Mike

To keep it simple, the following is optimizable if you have an index on Shift Number and an index on Worker Code:
seek nShiftNumber
if !eof()
   locate for WorkerCode = nWorkerCode while ShiftNumber = nShiftNumber
endif
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform