number to ascii character

630 views
Skip to first unread message

ro...@ribble.plus.com

unread,
Jun 4, 2014, 10:26:36 AM6/4/14
to mitappinv...@googlegroups.com
Is there a block or a way to convert a number to an ascii character

Gareth Haylings

unread,
Jun 4, 2014, 10:42:39 AM6/4/14
to mitappinv...@googlegroups.com
Sorry but there is no block to do this in AI. 

There is  work around for this but it is a bit long winded sorry. Add each character from the ASCII table in a list and use the a search to check for the character you are looking for in the list. The index of the item in the list will be the ASCII code 

Taifun

unread,
Jun 4, 2014, 3:15:44 PM6/4/14
to mitappinv...@googlegroups.com
Scott has an App Inventor Classic example for that here https://groups.google.com/d/msg/app-inventor-developers-library/ou99CKMFkyY/-XdEyU3PXRAJ
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Scott Ferguson

unread,
Jun 4, 2014, 8:15:17 PM6/4/14
to mitappinv...@googlegroups.com
That example just uses a text string to store the characters and the Text index block to get it's position in the string.
---
Scott
Reply all
Reply to author
Forward
0 new messages