Char to int and back
(Created page with "Convert a number to its corresponding character Char.ConvertFromUtf32( 65 ) -- returns 'A' Convert a character to its corresponding Integer value Char.ConvertToUtf32('AB',...")
 
(Automatically adding template at the end of the page.)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Convert a number to its corresponding character
Convert a number to its corresponding character:


Char.ConvertFromUtf32( 65 )  -- returns 'A'
<code>Char.ConvertFromUtf32( 65 )</code> -- returns 'A'


Convert a character to its corresponding Integer value
Convert a character to its corresponding Integer value:


Char.ConvertToUtf32('AB',0) -- returns 65
<code>Char.ConvertToUtf32('AB',0)</code> -- returns 65


Char.ConvertToUtf32('AB',1) -- returns 66
<code>Char.ConvertToUtf32('AB',1)</code> -- returns 66
[[Category:OCL]]
[[Category:Data types]]
{{Edited|July|12|2024}}

Revision as of 15:28, 10 February 2024

This page was created by Hans.karlsen@mdriven.net on 2022-11-22. Last edited by Edgar on 2025-01-20.

Convert a number to its corresponding character:

Char.ConvertFromUtf32( 65 ) -- returns 'A'

Convert a character to its corresponding Integer value:

Char.ConvertToUtf32('AB',0) -- returns 65

Char.ConvertToUtf32('AB',1) -- returns 66

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments