Skip to main content

IMESetMode function (LotusScript Language)

Changes the current input mode (IME) into the mode user specified at its parameter. IMESetMode is supported for Windows™ DBCS system only.

Syntax

IMESetMode ( IMEMode )

Elements

IMEMode

Integer value for the desired IME mode user prefer to set. You can specify the values listed in the following table for the IMEMode parameter.

Country or RegionConstantValueDescription
AllIME_ON1Set IME on
IME_OFF2Set IME off
JapanIME_HIRAGANA4Double-byte Hiragana
IME_KATAKANA_DBCS5Double-byte Katakana
IME_KATAKANA_SBCS6Single-byte Katakana
IME_ALPHA_DBCS7Double-byte alphanumeric
IME_ALPHA_SBCS8Single-byte alphanumeric
TaiwanIME_NATIVE_MODE4Taiwan native mode
IME_ALPHA_DBCS7Double-byte alphanumeric
IME_ALPHA_SBCS8Single-byte alphanumeric
KoreaIME_HANGEUL4Hangeul DBC
IME_HANJACONVERT5Hanja conversion
IME_ALPHA_DBCS7Double-byte alphanumeric
IME_ALPHA_SBCS8Single-byte alphanumeric
PRCIME_NATIVE_MODE4PRC native mode
IME_ALPHA_DBCS7Double-byte alphanumeric
IME_ALPHA_SBCS8Single-byte alphanumeric

Return values

TRUE

IME mode has been set successfully.

FALSE

Unable to set IME correctly, or unable to find IME on the system.

Usage

IMESetMode is available on interactive execution of LotusScript®.

The IMESetMode function is related with the IMEStatus function and generally used with it.

The IMESetMode function is expected to be used upon the Entering event of a Notes® field.

Example