Siebel eScript Language Reference > Methods Reference > Conversion Methods >

Convert Value to String Method


The Convert Value to String method converts the value that the value argument contains to a string. It returns a value in the format of a Unicode string. The contents of this string 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

ToString(value)

Values That the Convert Value to String Method Returns

Table 99 describes values that the Convert Value to String method returns.

Table 99. Values That the Convert Value to String Method Returns
Data Type
Return Values

Boolean

This method returns one of the following values, depending on if the value that the value argument contains is:

  • False. It returns the following value:

    false

  • Not false. It returns the following value:

    true

null

This method returns the following string:

null

number

This method returns a value depending on which of the following values the value argument contains:

  • NaN. It returns the following value:

    NaN

  • +0 or -0. It returns the following value:

    0

  • Infinity. It returns the following value:

    Infinity

A number. It returns a string that includes this number.

For more information on the number object, see NaN Numbers.

object

This method returns the following string:

[object Object]

string

This method returns the value that the value argument contains.

undefined

This method returns the following string:

undefined

Example

For an example, see Evaluate Expression Method.

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