Skip to main content
Version: 20 R7 BETA

SPELL ADD TO USER DICTIONARY

SPELL ADD TO USER DICTIONARY ( words )

ParameterTypeDescription
wordsText, Text arrayWord or list of words to add to user dictionary

Description

The SPELL ADD TO USER DICTIONARY command adds one or more words to the current user dictionary.

A user dictionary is a dictionary containing words added by the user to the current dictionary. This dictionary is a file named UserDictionaryxxx.dic (where xxx represents the ID of the current dictionary) that is created automatically in the current 4D folder. There is a user dictionary for each current dictionary used.

In words, pass a text string or a text array containing the word(s) to be added to the user dictionary. If one of the words is already found in the dictionary, it is ignored by the command.

Example

Adding proper nouns to the user dictionary:

 ARRAY TEXT($arrTwords;0)
 APPEND TO ARRAY($arrTwords;"4D")
 APPEND TO ARRAY($arrTwords;"Wakanda")
 APPEND TO ARRAY($arrTwords;"Clichy")
 SPELL ADD TO USER DICTIONARY($arrTwords)

See also

SPELL CHECK TEXT

Properties

Command number1214
Thread safe