4D v16.3

SPELL CHECKING

Home

 
4D v16.3
SPELL CHECKING

SPELL CHECKING 


 

SPELL CHECKING  
Does not require any parameters

The SPELL CHECKING command triggers the spell check of the field or variable having the focus in the currently displayed form. The object checked must be of the string or text type.

Note: If you want to trigger the spellcheck by clicking a button in the form, make sure that this button does not have the "Focusable" property set.

Spell checking starts with the first word of the field or variable. If an unknown word is detected, the spell check dialog box appears (for more information, refer to the Design Reference manual of 4D). 4D uses the current dictionary (corresponding to the language of the application) unless you have used the SPELL SET CURRENT DICTIONARY command.

Warning: The SPELL CHECKING command affects the text that is being entered in the form, and not the associated data source (field or variable). This means that if you call this command from the On Data Change or On Losing Focus form events (not recommended), it will not affect the stored text since 4D has already assigned the entered text to the data source at this point. In this case, you need to assign the edited result to the data source yourself, using the Get edited text command. For example:

 If(Form event=On Data Change)
    SPELL CHECKING
    theVariable:=Get edited text
 End if



See also 

SPELL CHECK TEXT
SPELL SET CURRENT DICTIONARY

 
PROPERTIES 

Product: 4D
Theme: Spell Checker
Number: 900

 
HISTORY 

Created: 4D 2004

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)