Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching for a substring in a field - fastest way
Message
De
12/03/2017 20:05:49
 
 
À
12/03/2017 15:08:23
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01648880
Message ID:
01648954
Vues:
48
It would appear from public records that Jim Korenthal passed away in 2011 at the age of 65.

>>>Is there a quicker way?
>
>LIKE is partly Rushmore optimizable from memory- though it's less likely if your string can be anywhere in the field.
>
>
>myfleld="Test1Test2"
>? LIKE("*Test1*",myfleld)
>? LIKE("*Test2*",myfield)
>
>
>Especially if there's only a few likely matches, I agree with the suggestion to extract matches to a cursor. SET FILTER in a Grid can be terribly slow...
>
>The other thing you might try, is the old PHDBase that still works in VFP9. http://fox.wikis.com/wc.dll?Wiki~PhdBase Pulling records with a string expression can be nearly instantaneous, even with hundreds of thousands of records. Also it has a really good fuzzy search in case somebody misspells MacAdam (sic) and you need to find that needle in a haystack! I'm not sure whether you can still buy it- its author, Jim Korenthal, seemed to change direction many years ago.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform