How do I get ASCII code from letter?

Hi,
is there a function or a tool to get the ASCII code of a Letter?

Horst

Please search the forum before asking questions that have been answered before. Thanks.

Use this guide using JavaScript to get the Ascii code:

Or you can also use this:

Kumaraswamy shows how to find the ASCII code of a character using the WebViewer

in Helpful things you need to know

Find the section Get the ASCII code (Decimal base) of the character of his Guide.

1 Like

I did. But I get always answers who have no relation with my question. This time nothing

after doing a search for ascii like this Search results for 'ascii' - MIT App Inventor Community I get several threads and the third thresd is

https://community.appinventor.mit.edu/t/convert-letters-to-ascii/8661

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

See if my extension gives you what you need. It does return an ascii number in hex, but you can use a math block to get dec. I can also slightly modify the extension to match the expectations.
https://community.appinventor.mit.edu/t/how-to-convert-binary-data-to-text-and-text-to-binary-data/19660/5?u=patryk_f

1 Like

Hi Taifun,
thanks for the note, I just found it too. I dont know why I didn't notice it.

Thank you Patryk,
That helps.

If you want to do it yourself, here is a csv table

ascii_table.csv (6.0 KB)

1 Like

you can use the following extension:
ConversionAsciiTexte.aix (9.3 KB)

here is some documentation
https://community.appinventor.mit.edu/t/extension-app-inventor-pour-donner-le-code-ascii-dun-caractere-et-inversement/80397