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 Convert Value to Integer 32 Method.
Format
ToString(value)
The following table describes 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:
|
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:
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.