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

ToBytes() Method


This function places its parameter in a buffer.

Syntax

ToBytes(value)

Parameter
Description

value

The value to be placed in a buffer

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. Before using it, confirm that the JavaScript interpreter that will run the script supports Siebel eScript functions. Avoid using this function 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 Copyright © 2007, Oracle. All rights reserved.