Siebel eScript Language Reference > About Siebel eScript > About Data Types and Numbers >

Properties and Methods of Common Data Types


Common data types include properties and methods that you can use with any variable of this type. Any string variable can use any string method. Examples of common data types include a number or string. For example, assume you use a numeric variable named VariableA and you must convert it to a string. The following example illustrates how you can use the toString method to convert a numeric variable to a string:

var VariableA = 5;
var VariableB = num.toString();

After this code finishes, VariableA contains the number 5 and VariableB contains the string 5.

The following methods are common to variables:

  • ValueOf method. Returns the value of a variable. Value is an implicit property of some objects, including number, string, and Boolean objects.
  • ToString method. Returns the value of a variable that is expressed as a string. Value is an implicit property of number and Boolean objects.
Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.