Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speeding up search - Locate For or Seek?
Message
From
27/07/2000 11:37:14
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
26/07/2000 19:23:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00397065
Message ID:
00397635
Views:
30
Hi Mark

BTW LOOKUP operates like a SEEK if you specify the index tag as the fourth parameter. If the tag isn't specified, it does a LOCATE. The other advantage is it returns a value. So you can...
lcAlias = alias()
select table
lnOrder = Order()
set order to tag blah
seek something
if found()
  ? something_else
endif
set order to lnOrder
select (lcAlias)
or you can ...
?lookup(table.something_else,table.something,table.something,"BLAH")
The above code isn't tested and its not perfect, but I believe its basically what lookup does.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform