Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speeding up search - Locate For or Seek?
Message
De
27/07/2000 11:37:14
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
26/07/2000 19:23:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00397065
Message ID:
00397635
Vues:
38
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform