Article ID: 163798
Article Last Modified on 5/12/2003
&& Copy current record to a separate file to avoid locking problem
COPY NEXT 1 TO spellchk.dbf
USE spellchk IN 0
SELECT spellchk
&& The following line may be added if the user wants changes
&& made to the buffered data appearing in Spell Checker. The reason
&& for this is the COPY TO command is reading directly from dbf file
&& on disk rather than the buffered data appearing in Edit region.
REPLACE spellchk.notes WITH THIS.VALUE
&& Run SpellChecker on the temporary table
MODIFY MEMO notes NOWAIT
DO (_SPELLCHK)
CLOSE MEMO notes
&& Update Edit Region and original table with any changes made
&& by user/SpellChecker
THIS.VALUE=spellchk.NOTES
USE && Close the temporary table
SELECT employee
THIS.REFRESH() && Update the Edit Region
&& Erase the temporary files created
ERASE spellchk.dbf
ERASE spellchk.fpt
OPEN DATABASE HOME()+"SAMPLES\DATA\TestData.DBC" SHARED
USE employee SHARED
MODIFY MEMO notes NOWAIT
* Opens a text editing window that displays the memo field
* assuming the memo field is called "notes".
* The "nowait" clause allows execution to continue
DO (_SPELLCHK)
* The _spellchk system variable references the spell checker that
* will be executed by FoxPro.
CLOSE MEMO NOTES
* This closes the text editing window after the user exits the
* spell checker
SELECT employee
? RLOCK() &&Locks the Record
117212 How to Use the FoxPro Spelling Checker (SPELLCHK.APP)
136641 PRB: Spell Checking Edit Box Contents Does Not Work
Additional query words: kbvfp300 kbvfp300b kbvfp500 kbvfp500a kbvfp600
Keywords: kbbug KB163798