SPELL ADD TO USER DICTIONARY
SPELL ADD TO USER DICTIONARY ( words )
Parameter | Type | Description | |
---|---|---|---|
words | Text, Text array | → | Word or list of words to add to user dictionary |
This command is not thread-safe, it cannot be used in preemptive code.
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)