Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek a record from a multiple index file
Message
 
À
18/12/2000 16:04:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00454813
Message ID:
00454875
Vues:
29
>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
*you might (if the shift code is numeric)
*create a multiple field key/tag
use MyShiftWorkerTable in 0 exclusive
select MyShiftWorkerTable
index on str(shiftnumber,1)+workercode tag ShiftWorkerTag

if seek(str(RequestedShifNumber,1)+RequestedWorkerCode,"MyShiftWorkerTable","ShiftWorkerTag")
  * It's there, yahoo
else
  * It's not there, boohoo
endif
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform