PRB: Spell Checking Edit Box Contents Does Not WorkID: Q136641 3.00 WINDOWS kbtool kbprb 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:
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: 1. In the DblClick event procedure of the EditBox, enter this code:
2. Alternatively, add a command button to the form, and enter the same
STATUSThis behavior is by design.
MORE INFORMATIONFor more information about the Spell Checker, please see the following article in the Microsoft Knowledge Base:
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 KBCategory: kbtool kbprb KBSubcategory: FxotherGeneral
|
Last Reviewed: April 23, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |