version 2004.5 (Modified)
SET DICTIONARY (dictionary)
Parameter | Type | Description | |
dictionary | Longint | Dictionary to use for spell-check |
Description
The SET 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).
The modification of the current dictionary is reflected in all the processes of the database for the session.
By default, 4D uses the dictionary corresponding to the application language. Five main dictionaries are available: English, French, German, Spanish and Norwegian.
In dictionary, pass the number of the dictionary to use. You can use one of the following predefined constants, which are found in the "Dictionaries" theme:
Constant | Type | Value |
English Dictionary | Longint | 69632 |
German Dictionary | Longint | 131584 |
Spanish Dictionary | Longint | 196608 |
French Dictionary | Longint | 262144 |
Norwegian Dictionary | Longint | 589824 |
In addition, numerous variants are available for each of the four main languages. Here is the full list of all variants supported by the command. To load a variant, pass its value directly in the dictionary parameter:
Dictionary | Value |
English (United Kingdom) | 65536 |
English Irish (Ireland) | 65600 |
English Australian (Australia) | 65664 |
English of New Zealand | 65680 |
English American (USA) | 65792 |
English Canadian (Canada) | 65920 |
English South African (South Africa) | 66048 |
English West Indian (Caribbean) | 66176 |
English Jamaican (Jamaica) | 66192 |
English (United Kingdom + America) | 69632 (*) |
German standard (Germany, old spelling) | 131072 |
German of Luxembourg | 131073 |
German of Austria | 131088 |
German of Liechtenstein | 131089 |
German of Switzerland (old spelling) | 131104 |
German of South Tyrol | 131120 |
German New spelling | 131328 |
German of Switzerland New spelling | 131360 |
German Old and New spelling | 131584 (*) |
German of Switzerland Old and New spelling | 131616 |
Spanish standard (Spain) | 196608 (*) |
Spanish of Latin America standard | 196864 |
Spanish Argentinean (Argentina) | 196865 |
Spanish Bolivian (Bolivia) | 196866 |
Spanish Chilean (Chile) | 196867 |
Spanish Columbian (Columbia) | 196868 |
Spanish Cuban (Cuba) | 196869 |
Spanish Costa Rican (Costa Rica) | 196870 |
Spanish Dominican (Dominican Rep.) | 196871 |
Spanish Ecuadorian (Ecuador) | 196872 |
Spanish Guatemalan (Guatemala) | 196873 |
Spanish Honduran (Honduras) | 196874 |
Spanish Mexican (Mexico) | 196875 |
Spanish Nicaraguan (Nicaragua) | 196876 |
Spanish Panamanian (Panama) | 196877 |
Spanish Paraguayan (Paraguay) | 196878 |
Spanish Peruvian (Peru) | 196879 |
Spanish Puerto Rican (Puerto Rico) | 196880 |
Spanish Salvadorian (El Salvador) | 196881 |
Spanish Uruguayan (Uruguay) | 196882 |
Spanish Venezuelan (Venezuela) | 196883 |
Spanish Guinean (Equatorial Guinea) | 197121 |
France, Monaco, Valle d'Aosta | 262144 (*) |
Canada | 262160 |
Louisiana | 262161 |
Belgium | 262176 |
Luxembourg | 262177 |
Switzerland | 262192 |
Martinique, Guadeloupe, Haïti, Guyana | 262208 |
Reunion, Seychelles, Comoro, Mauritius | 262224 |
Tahiti, New Caledonia, Vanuatu, etc. | 262240 |
Morocco, Algeria, Tunisia | 262256 |
French African standard | 262272 |
Benin | 262273 |
Burkina Faso | 262274 |
Burundi | 262275 |
Cameroon | 262276 |
Central African Republics | 262277 |
Congo (Brazzaville) | 262278 |
Democratic Republic of Congo (ex-Zaire) | 262279 |
Ivory Coast | 262280 |
Djibouti | 262281 |
Gabon | 262282 |
Guinea | 262283 |
Mauritania | 262284 |
Niger | 262285 |
Rwanda | 262286 |
Senegal | 262287 |
Chad | 262288 |
Togo | 262289 |
Bokmal Norwegian | 589824 (*) |
Nynorsk Norwegian | 590080 |
Samnorsk Norwegian | 590336 |
(*) standard dictionary that is installed when you use a constant.
Note: The Norwegian dictionary is not present by default in 4D. Please contact 4D in order to obtain it free of charge. You must then install it in the 4D Extensions/Spellcheck folder.
See Also
System Variables or Sets
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.