31 (104)
8.3.6
ChangeLanguage()
This command changes the language setting based on an HTML form object.
This function cannot be used in e-mail messages.
Syntax:
<?--#exec cmd_argument='ChangeLanguage( "source" )'-->
source:
Name of form object which contains the new language setting.
The passed value must be a single digit as follows:
Form value
Language
“0”
English
“1”
German
“2”
Spanish
“3”
Italian
“4”
French
Default Output
Scenario
Default Output
Success
“Language changed”
Error
“Failed to change language”
Example
The following example demonstrates how to use this function. The resulting page sends a form
to itself, which is then evaluated by the ChangeLanguage() command.
<HTML>
<HEAD><TITLE>ChangeLanguage Test</TITLE></HEAD>
<BODY>
<?--#exec cmd_argument='ChangeLanguage("lang")'-->
<FORM action="test.shtm">
<P>
<LABEL for="lang">Language(0-4): </LABEL><BR>
<INPUT type="text" name="lang"><BR><BR>
<INPUT type="submit" name="_submit">
</P>
</FORM>
</BODY>
</HTML>
In order for this example to work, the HTML file must be named “test.shtm”.
Anybus
®
CompactCom
™
40 Common Ethernet Design Guide
HMSI-27–269 2.1