Difference between revisions of "Documentation/How Tos/Calc: CODE function"
From Apache OpenOffice Wiki
< Documentation | How Tos
Javier Lopez (Talk | contribs) |
m |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{DISPLAYTITLE:CODE function}} |
− | + | {{Documentation/CalcFunc TextTOC | |
− | + | |ShowPrevNext=block | |
− | + | |PrevPage=Documentation/How_Tos/Calc:_CLEAN_function | |
− | | | + | |NextPage=Documentation/How_Tos/Calc:_CONCATENATE_function |
− | + | }}__NOTOC__ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }} | + | |
== CODE == | == CODE == | ||
Line 52: | Line 22: | ||
: also returns <tt>'''72'''</tt>. | : also returns <tt>'''72'''</tt>. | ||
− | {{ | + | {{Note|The international standard ODFF has introduced the more versatile functions <tt>'''UNICODE'''</tt> and <tt>'''UNICHAR'''</tt>, which are now implemented in Calc.}} |
− | {{ | + | {{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]] |
Latest revision as of 15:26, 2 February 2024
- Text Functions
- ARABICASCBASEBAHTTEXTCHARCLEANCODECONCATENATEDECIMALDOLLAREXACTFINDFIXEDJISLEFTLENLOWERMIDPROPERREPLACEREPTRIGHTROMANSEARCHSUBSTITUTETTEXTTRIMUNICHAR
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.
See Also
-