This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SPELL SET CURRENT DICTIONARY
|
SPELL SET CURRENT DICTIONARY ( dictionary ) | ||||||||
Parameter | Type | Description | ||||||
dictionary | Longint, Text |
![]() |
ID, Name, or Language code of dictionary to use for spell-check | |||||
The SPELL SET CURRENT DICTIONARY command causes the replacement of the current dictionary with the one specified by the dictionary parameter. The current dictionary is used for the built-in spell-check feature in 4D (for more information, refer to the 4D Design Reference manual) as well as the one in the 4D Write Pro. The modification of the current dictionary is reflected immediately in all the processes of the database for the session, as well as in the 4D Write Pro areas.
4D uses:
Note: For Mac, you can use the Hunspell dictionary via the SET DATABASE PARAMETER command. For more information, see the Spellcheck configuration section in the Design Reference manual.
You can use the dictionary parameter to change the dictionary. You can pass either:
Compatibility note: In previous versions of 4D, "Cordial" dictionaries were supported. For compatibility, it is still possible to pass a "Cordial" dictionary number in the dictionary parameter (value or constant from the "Dictionaries" theme). In this case, however, the dictionary is redirected internally to an equivalent Hunspell dictionary (or the native Mac dictionary).
If the dictionary is loaded correctly, the system variable OK is set to 1; otherwise, it is set to 0 and an error is returned.
Loading of the "fr-classic" dictionary found in the Hunspell folder:
SPELL SET CURRENT DICTIONARY("fr-classic")
// SPELL SET CURRENT DICTIONARY ("FR-classic.dic") is valid
SPELL CHECKING
SPELL Get current dictionary
SPELL GET DICTIONARY LIST
Product: 4D
Theme: Spell Checker
Number:
904
Modified: 4D 2004.5
Modified: 4D v13
Renamed: 4D v13 (SET DICTIONARY)
Modified: 4D v14
4D Language Reference ( 4D v20 R7)