CODE function
From Apache OpenOffice Wiki
< Documentation | How Tos
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
< {{#switch:Previous Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} | {{#switch:Next Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} > |
CODE
returns the numeric code for the first character in a text string.
Syntax:
CODE(text)
- returns the numeric code for the first character of the text string text, in the range 0-255.
- Codes greater than 127 may depend on your system's character mapping (for example iso-8859-1, iso-8859-2, Windows-1252, Windows-1250), and hence may not be portable.
Example:
CODE("H")
- returns 72, the character code for "H".
CODE("Hello")
- also returns 72.
The international standard ODFF has introduced the more versatile functions UNICODE and UNICHAR, which are now implemented in Calc. |
{{#switch:EN
| RU = Смотрите также:
| UA = Дивіться також:
| EN = See Also
| PT = Ver também
| #default = See Also
}}