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 Convert Value to Integer 32 Method.

Format

ToObject(value)

The following table describes 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