Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing 2 tables; getting list of missing records
Message
From
03/08/2005 18:05:32
 
 
To
01/08/2005 10:27:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01037464
Message ID:
01038355
Views:
22
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform