Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > String Objects > String.fromCharCode() Static MethodThis method returns a string created from the character codes that are passed to it as parameters. SyntaxString.fromCharCode(code1, code2, ... coden) ReturnsA new string containing the characters specified by the codes. UsageThis static method allows you to create a string by specifying the individual Unicode values of the characters in it. The identifier String is used with this static method, instead of a variable name as with instance methods because it is a property of the String constructor. The parameters passed to this method are assumed to be Unicode values. The following line: var string1 = String.fromCharCode(0x0041,0x0042); sets the variable string1 to ExampleThe following example uses the decimal Unicode values of the characters to create the string var seblStr = String.fromCharCode(83, 105, 101, 98, 101, 108); See Also |
Siebel eScript Language Reference |