Siebel eScript Language Reference > Siebel eScript Commands > Conversion or Casting Methods >

ToBytes() Method

This function places its parameter in a buffer.





The value to be placed in a buffer


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
ToString() Method

Siebel eScript Language Reference