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

Clib.toascii() Method


This method translates a character into a seven-bit ASCII representation of the character.

Syntax

Clib.toascii(char)

Parameter
Description
char
A character literal, or a variable containing a character, to be translated

Returns

A seven-bit ASCII representation of char.

Usage

This method translates a character into a seven-bit ASCII representation of char. The translation is done by clearing every bit except for the lowest seven bits. If char is already a seven-bit ASCII character, it returns the character.

Example

The following line of code returns the close-parenthesis character:

TheApplication().RaiseErrorText(Clib.toascii("©"));

See Also

Clib.isascii() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003