PRB: Spell Checking Edit Box Contents Does Not WorkLast reviewed: April 22, 1996Article ID: Q136641 |
The information in this article applies to:
SYMPTOMSThe following error appears if you place an edit box on a form, set its ControlSource property to a memo field from a table, and then try to run the FoxPro Spell Checker on that memo field:
Window on top is not a text editing window. CAUSEThe FoxPro Spell Checker works in a text-editing window only. Examples of text-editing windows are the windows opened by the MODIFY COMMAND command and the editing window opened from a memo field in a Browse window. An EditBox control is not a text-editing window. Consequently, the Spell Checker will not run. You can test for the window on top by opening the Debug window and entering "wontop()" as the condition to test for while a form is running and an edit box is the current control. The debug window will show that the form is the current window.
WORKAROUNDTo use the Spell Checker to spell check a memo in a form, first open a text- editing window. To do this, use the MODIFY MEMO command. Create a form and place an EditBox control on it, and set its ControlSource property to a memo field in your table. Use the following code to run the MODIFY MEMO command:
STATUSThis behavior is by design.
MORE INFORMATIONFor more information about the Spell Checker, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q117212 TITLE : How to Use the FoxPro Spelling Checker (SPELLCHK.APP)NOTE: the Spell Checker is provided by a third-party vendor. It cannot be distributed without that vendor's permission.
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |