| 4D v14.4SPELL Get current dictionary | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v14.4
 SPELL Get current dictionary 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SPELL Get current dictionary -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| Function result | Longint |   | ID of dictionary used for spell check | |||||
The SPELL Get current dictionary command returns the ID number of the dictionary being used.
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
	Product:  4D
	Theme:  Spell Checker
	Number:  
        1205
        
        
        
	
	Created:  4D v13
	
	
	
	
	4D Language Reference ( 4D v15)
	4D Language Reference ( 4D v14.4)
	
	
	4D Language Reference ( 4D v15.4)
	
	
	
	
	4D Language Reference ( 4D v15.3)
	
	
 Add a comment
Add a comment