SetLanguage
Mon 01 January 2018Syntax
SetLanguage(language_code)
Description
Use the SetLanguage function to set the end user's current language preference to the specified language_code . language_code must be a valid translate value for the field LANGUAGE_CD. SetLanguage returns True if it is successful, and it returns False if it fails or an invalid value was passed. The new language preference is temporary, remaining in effect only until the user logs off, or until another call is made to SetLanguage.
Note: SetLanguage does not work in Signon PeopleCode, or with asynchronous messages.
Parameters
Field or Control |
Definition |
---|---|
language_code |
A valid language code, stored in the Translate table for the LANGUAGE_CD field. |
Returns
Optionally returns a Boolean value indicating whether the function executed successfully. Returns False if an invalid language code is passed.