setScriptLangId()
Sets the current language of the script to the specified value.
Synopsis
int setScriptLangId(int id);
int setScriptLangId( string | OaLanguage lang);
Parameters
Parameter | Description |
---|---|
id | Required language ID |
lang | language defined by the string or the OaLanguage enum |
Return value
Returns 0 if successfully executed and in the event of an error -1 in the event of an error.
Errors
A Language with the specified ID does not exist.
Description
This function is called with the required language number, string or OaLanguage enum value to define the current language for the current script.
Example
Sets the language of the script to the language with the ID 0.
main()
{
setScriptLangId(0);
}
Assignment
Multilingualism
Availability
UI, CTRL