Siebel eScript Language Reference > Methods Reference > Conversion Methods >

Convert Value to Bytes Method


The Convert Value to Bytes method converts the value that the value argument contains to bytes, and then places this value in a buffer. This method is unique to Siebel eScript. For more information, see Make Sure the JavaScript Interpreter Can Run a Function.

This method does not convert a Unicode value to a corresponding ASCII value. For example, it stores the Unicode string Hit as the following value:

\OH\Oi\Ot

This value is the following hexadecimal sequence:

00 48 00 69 00 74

Format

ToBytes(value)

Table 95 describes the arguments for the Convert Value to Bytes method.

Table 95. Arguments for the Convert Value to Bytes Method
Argument
Description

value

The value that this method converts to bytes, and then places in a buffer.

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