Spread 8.0 Documentation
CODE
Support Options
Formula Reference > Built-In Functions > CODE

Glossary Item Box

CODE


Name

Code

Description

Returns a numeric code to represent the first character in a text string. The returned code corresponds to the Windows character set (ANSI).

Syntax

CODE(text)

Remarks

The text argument is the text from which you want to determine the code of the first character.

Data Type

Accepts string data. Returns numeric data. For more information, see Data Type for Each Cell Type.

Example

fpSpread1.Formula = "CODE(""B"")" equals 66
fpSpread1.Formula = "CODE(""Buffalo"")" equals 66

Copyright © GrapeCity, inc. All rights reserved.