PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode of spelling checker in a Word Processing control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Indicates and loads the dictionary corresponding to a given language.
Notes:
  • The dictionary must be a spelling dictionary in Hunspell format.
  • The French and English/American dictionaries are loaded by default.
  • In this version, these dictionaries are used by the Word Processing control. Caution: This documentation presents the last features of the Word Processing control. Make sure that all the necessary modules are updated.
Example
// Load the French dictionary
DictionaryLoad("Dictionary_fr.dic", languageFrench, 0)
DictionaryLoad("Dictionary_fr.dic", "fr-fr")

// Load the French Canadian dictionary
DictionaryLoad("Dictionary_fr.dic", "fr-ca")
DictionaryLoad("Dictionary_fr-ca.dic", languageFrench, 3)
// 3 corresponds to the sub-language of Canada
Syntax

Loading a dictionary and associating it with a language via a constant Hide the details

<Result> = DictionaryLoad(<Dictionary> , <Language> [, <Sub-language>])
<Result>: Boolean
  • True if the dictionary was loaded,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Dictionary>: Character string (with quotes)
Path of dictionary file to load (".dic" file). A ".aff" file with the same name must be found at the same location. These files must correspond to Hunspell dictionary files.
<Language>: Integer constant
Language for which the dictionary will be used:
Versions 16 and later
languageAfrikaans
New in version 16
languageAfrikaans
languageAfrikaans
Afrikaans
languageAlbanianAlbanian
languageGermanGerman
languageEnglishEnglish
languageArabicArabic
languageArmenianArmenian
Versions 16 and later
languageBengali
New in version 16
languageBengali
languageBengali
Bengali
languageBelarusianBelorussian
languageBulgarianBulgarian
Versions 16 and later
languageCatalan
New in version 16
languageCatalan
languageCatalan
Catalan
languageChineseChinese
languageKoreanKorean
languageCroatianCroatian
languageDanishDanish
languageSpanishSpanish
languageEstonianEstonian
languageFinnishFinnish
languageFrenchFrench
languageGeorgianGeorgian
languageGreekGreek
languageHebrewHebrew
Versions 17 and later
languageHindi
New in version 17
languageHindi
languageHindi
Hindi
languageHungarianHungarian
Versions 16 and later
languageIndonesian
New in version 16
languageIndonesian
languageIndonesian
Indonesian
languageIcelandicIcelandic
languageItalianItalian
languageJapaneseJapanese
languageLatvianLatvian
languageLithuanianLithuanian
languageMacedonianMacedonian
languageDutchDutch
languageNorwegianNorwegian
languageUzbekUzbek
Versions 16 and later
languagePunjabi
New in version 16
languagePunjabi
languagePunjabi
Punjabi
languagePolishPolish
languagePortuguesePortuguese
languageRomanianRomanian
languageRussianRussian
languageSerbianSerbian
Versions 16 and later
languageSindhi
New in version 16
languageSindhi
languageSindhi
Sindhi
languageSlovakSlovakian
languageSlovenianSlovenian
languageSwedishSwedish
languageCzechCzech
languageThaiThai
languageTurkishTurkish
languageUkrainianUkrainian
languageVietnameseVietnamese
<Sub-language>: Optional integer
Sub-language for which the dictionary is defined. See Correspondence between languages, sub-languages, character sets and nations for more details. If this parameter is not specified, the default sub-language associated with the language is used.

Loading a dictionary and associating it with a language (via the language name) Hide the details

<Result> = DictionaryLoad(<Dictionary> , <Language>)
<Result>: Boolean
  • True if the dictionary was loaded,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Dictionary>: Character string (with quotes)
Path of dictionary file to load (".dic" file). A ".aff" file with the same name must be found at the same location. These files must correspond to Hunspell dictionary files.
<Language>: Character string (with quotes)
Language and sub-language for which the dictionary will be used (for example : "fr-fr").
Remarks

Operating mode of spelling checker in a Word Processing control

  • A docx document contains information about the document language. This information is used to identify the dictionary language that will be used.
  • If the dictionary corresponding to the document language is placed beside the executable, it is automatically loaded and used to correct the document. If the dictionary corresponding to the document language is not found, the spell check is not available.
  • When creating a docx document via the Word Processing control, the document language corresponds to the current application language (defined by Nation for example).
  • ..CheckSpell is used to enable (or not) the spelling checker on a Word Processing control.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment