Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference > Siebel eScript Language Overview > Data Types >
Properties and Methods of Basic Data Types
The basic data types, such as number and string, have properties and methods that may be used with any variable of that type. Any string variable may use any string method.
The properties and methods of the basic data types are retrieved in the same way as objects. They are commonly used internally by the Siebel eScript interpreter, but you may use them if you choose. If you have a numeric variable called
number
and you want to convert it to a string, you can use the .toString() method, as illustrated in the following fragment:var number = 5
var s = number.toString()After this fragment executes, the variable
number
contains the number 5 and the variables
contains the string"5"
.The following two methods are common to variables.
toString()
This method returns the value of a variable expressed as a string.
valueOf()
This method returns the value of a variable.
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel eScript Language Reference Published: 18 April 2003 |