Create String From Unicode Values Method
The Create String From Unicode Values method converts Unicode values to a string. It uses Unicode values that you specify to determine the characters that are part of the string that it creates.
The String name is a property of the String constructor, so you use with this method instead of the variable name that you use with an instance method. Siebel eScript assumes that the values in the arguments that it passes to this method are Unicode values.
For more information, see Clib Convert Character to ASCII Method.
Format
String.fromCharCode(code1, code2, ... coden)
The following table describes the arguments for the Create String From Unicode Values method.
Argument | Description |
---|---|
code1, code2, ... coden |
Each argument is an integer that identifies a Unicode code number. |
Example 1
The following example sets the string1 variable to AB:
var string1 = String.fromCharCode(0x0041,0x0042);
The following example uses the decimal Unicode values of the characters to create a string:
var seblStr = String.fromCharCode(83, 105, 101, 98, 101, 108);
This example provides a string that contains the following characters:
Siebel
For another example, see Write Byte to Buffer Method.