Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing 2 tables; getting list of missing records
Message
De
03/08/2005 18:05:32
 
 
À
01/08/2005 10:27:29
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 9
Divers
Thread ID:
01037464
Message ID:
01038355
Vues:
23
My thought was to build a cursor of all words in a block of text and compare that cursor to a cursor containing a list of all words in a dictionary. The result should be a list of misspelled words.

I assume you have an index on the cWord field of the dictionary table - of course <s>. So try it with a relation:
...
* build a cursor "crsTextblock" with the words of a text block (eg a paragraph)
* eg: ALINES(aWords,cParagraph," ") ; select crsTextblock ; APPEND FROM Array aWords
...
use tabDictionary in 0 order cWord && index on field cWord, tagname cWord
select crsTextblock
set relation to cWord into "tabDictionary"
select * from crsTextblock where eof("tabDictionary") into cursor crsMisspelled
Bye, Olaf.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform