Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locate from a certain record
Message
 
 
To
06/09/2004 02:40:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00939662
Message ID:
00939930
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform