CODE


Description Returns a Unicode value of the first character of the supplied string.

Syntax CODE ( text )
Argument Description
text Any string.

Remarks Numeric code and associated text are defined according to the operating system's native character set. Since the Java platform is 100% Unicode, the numbers returned by CODE come from the Unicode character set regardless of the underlying platform.

In non-Java applications such as Formula One ActiveX and Microsoft Excel, CODE will often return different results from those returned by Formula One for Java. Java applications consistently return results from Unicode, its native character set; non-Java applications may access and return results from character sets other than Unicode.

When CODE is called with strings containing what is commonly called "plain ASCII" text (characters with values from 32 to 126), the results will be the same in Formula One for Java, Fomula One ActiveX, and Microsoft Excel.