Skip to main content
Version: 21 R4 BETA

SPELL Get current dictionary

SPELL Get current dictionary : Integer

ParameterTypeDescription
Function resultInteger←ID of dictionary used for spell check
History
ReleaseChanges
13Created

Description​

The SPELL Get current dictionary command returns the ID number of the dictionary being used.

Example​

We want to display the language of the current dictionary:

  // List of loaded dictionaries
 SPELL GET DICTIONARY LIST($IDs_al;$Codes_at;$Names_at)
 $curLangCode:=SPELL Get current dictionary
 $countryName:=$Names_at{Find in array($IDs_al;$curLangCode)}
  // Display message
 ALERT("Current dictionary: "+$countryName) // Spanish

See also​

SPELL SET CURRENT DICTIONARY

Properties​

Command number1205
Thread safeno