Siebel eScript Language Reference > Methods Reference > Conversion Methods >

Convert Value to Object Method


The Convert Value to Object method converts the value that the value argument contains to an object. It returns a value that depends on the data type of the value that the value argument contains.

This method is unique to Siebel eScript. For more information, see Make Sure the JavaScript Interpreter Can Run a Function.

This method uses the same argument as the Convert Value to Integer 32 method. For more information, see Table 96.

Format

ToObject(value)

Data Types of the Value That the Convert Value to Object Method Returns

Table 98 describes data types of the value that the Convert Value to Object method returns.

Table 98. Data Types of the Value That the Convert Value to Object Method Returns
Data Type
Returns

Boolean

A new Boolean object that includes the value that the value argument contains.

number

A new number object that includes the value that the value argument contains.

string

A new string object that includes the value that the value argument contains.

object

The value that the value argument contains.

null

A run-time error.

undefined

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