Siebel eScript Language Reference > Siebel eScript Commands >

Conversion Methods


There are times when the types of variables or data should be specified and controlled. Several of the following conversion methods have one parameter, which is a variable or data item, to be converted to the data type specified in the name of the method. For example, the following fragment creates two variables:

var aString = ToString(123);
var aNumber = ToNumber("123");

The first variable, aString, is created by converting the number 123 to a string. The second variable, aNumber, is created by converting the string value "123" to a number. Because aString had already been created with the value "123", the second line could also have been:

var aNumber = ToNumber(aString);

The remainder of the following methods are used to convert numerical values to various forms or to interpret characters of strings in different ways.

Siebel eScript Language Reference