Siebel eScript Language Reference > Methods Reference > String Methods >

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)

Table 37 describes the arguments for the Create String From Unicode Values method.

Table 37. 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);

Example 2

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.

Siebel eScript Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.