Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best index expression?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01005870
Message ID:
01006003
Vues:
20
Hi Nadya,

I like Martins solution. What's wrong with LOCATE?
*-- Have an index on these two fields:
INDEX ON EMPTY (InsCommand) TAG E_InsCmd
INDEX ON SearchTB TAG SearchTB
SET ORDER TO

LOCATE ;
 FOR SearchTB = m.lcSearch AND NOT EMPTY (InsCommand) ;

IF FOUND()
 *Do the work
 CONTINUE && Locate the next qualifing record
ENDIF
Regards,

Mike
Regards,

Mike

"We try to solve the problem by rushing through the design process so that enough time is left at the end to uncover the errors that were made because we rushed through the design process."
- Glenford Myers

If you're going through hell, keep going. - Walt Disney
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform