Difference between revisions of "Documentation/How Tos/Calc: CODE function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
Line 32: Line 32:
 
* [[Documentation/How_Tos/Calc:_TEXT_function|<div style="font-size: 120%;">Text]]
 
* [[Documentation/How_Tos/Calc:_TEXT_function|<div style="font-size: 120%;">Text]]
 
* [[Documentation/How_Tos/Calc:_TRIM_function|<div style="font-size: 120%;">Trim]]
 
* [[Documentation/How_Tos/Calc:_TRIM_function|<div style="font-size: 120%;">Trim]]
 +
* [[Documentation/How_Tos/Calc:_UNICODE_function|<div style="font-size: 120%;">Unicode]]
 +
* [[Documentation/How_Tos/Calc:_UNICHAR_function|<div style="font-size: 120%;">Unichar]]
 
* [[Documentation/How_Tos/Calc:_UPPER_function|<div style="font-size: 120%;">Upper]]
 
* [[Documentation/How_Tos/Calc:_UPPER_function|<div style="font-size: 120%;">Upper]]
 
* [[Documentation/How_Tos/Calc:_VALUE_function|<div style="font-size: 120%;">Value]]
 
* [[Documentation/How_Tos/Calc:_VALUE_function|<div style="font-size: 120%;">Value]]
Line 56: Line 58:
 
{{SeeAlso|EN|
 
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: CHAR function|CHAR]]
 
* [[Documentation/How_Tos/Calc: CHAR function|CHAR]]
 +
* [[Documentation/How_Tos/Calc:_UNICODE_function|UNICODE]]
 +
* [[Documentation/How_Tos/Calc:_UNICHAR_function|UNICHAR]]
  
 
* [[Documentation/How_Tos/Calc: Text functions|Text functions]]
 
* [[Documentation/How_Tos/Calc: Text functions|Text functions]]

Revision as of 11:25, 29 January 2024


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.
Documentation note.png The international standard ODFF will introduce the more versatile functions UNICODE and UNICHAR, which will be implemented in Calc.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_CODE_function&oldid=259505"
Views
Personal tools
Navigation
Tools