Siebel eScript Language Reference > Siebel eScript Commands > The Global Object >

ToBytes() Method


This function places its parameter in a buffer.

Syntax

ToBytes(value)

Parameter
Description
value
The value to be placed in a buffer

Returns

Not applicable

Usage

This function transfers the raw data represented by value to a buffer. The raw transfer does not convert Unicode values to corresponding ASCII values. Thus, for example, the Unicode string Hit would be stored as \OH\Oi\Ot, that is, as the hexadecimal sequence 00 48 00 69 00 74.

CAUTION:  The ToBytes() function is unique to Siebel eScript. Avoid using it in a script that may be used with a JavaScript interpreter that does not support it.

See Also

ToBuffer() Method and ToString() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003