Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locate from a certain record
Message
 
 
À
06/09/2004 02:40:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00939662
Message ID:
00939930
Vues:
10
>Hi,
>how would I use function "locate" to start searching from a certain record?
>Thanks,
>Tamas Szigeti

In addition to other suggestions, you can combine the FOR and WHEN clauses in a LOCATE...

LOCATE FOR some_condition WHILE Invoice_Num = lnInvoiceNo

So if your table is indexed on Invoice_Num you can...

SEEK lnInvoiceNo
LOCATE FOR some_condition WHILE Invoice_Num = lnInvoiceNo

..which would be very fast since the number of records with that Invoice_Num should be fairly small.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform