niteshmourya / app-inventor-for-android

Automatically exported from code.google.com/p/app-inventor-for-android
Apache License 2.0
1 stars 0 forks source link

Functions Required - Hexadecimal / ASC conversion #954

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Sir/Madam,

Great development environment provided!!!

I was trying to convert one of my application i worte for windows mobile 6 to 
use on my Android phone. But i am stucked with hexadecimal conversion and Ascii 
conversions.

I need 2 functions atleast which i could not find in blocks, if you can provide 
that it will be very helpful.

1. decimal to Hexadecimal 
example : textbox1.text = Decimal2Hex(1234)

2. Ascii value of given digit/alphabetic
example : text1.text = ASC(a)

3. also if you can add MID function which is available in VB6

above functions will be very helpful for applications which need lot of math 
calculations.

Please see the attached notepad file, I have a function written in Visual Basic 
6, which i am trying to accomplish with App-Inventor. So you will have clear 
idea what i am trying to do.

Thanks Alot

Balbir Singh
xbalbir@gmail.com

Original issue reported on code.google.com by xbal...@gmail.com on 19 Dec 2010 at 7:08

Attachments:

GoogleCodeExporter commented 9 years ago
Yes...we greatly need an ASC and a CHR function like in VB so we can use ASCII 
characters outside printable characters.  We need access to Ascii 1, SOH and 
ascii 3, ETX for example.  Communications with the outside world via bluetooth 
require this.

Original comment by DarinDan...@gmail.com on 6 Jan 2011 at 10:26

GoogleCodeExporter commented 9 years ago
At present it does not seem possible to send even a \n over bluetooth.  I am 
stuck without that.

Original comment by robert.s...@gmail.com on 11 Mar 2011 at 8:10

GoogleCodeExporter commented 9 years ago
I have made a decimal to hexadecimal converter in Ai, if you'd like to know how 
I did it, I could tell you how I did it. I say a year after.

Original comment by Insomnia...@gmail.com on 22 Oct 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Hello, I would be interested in that decimal to hex converter. Actually 
interested in an hex2dec converter, but I would be able to figure out how to 
change it. Thanks

Original comment by Emanuel....@gmail.com on 15 Mar 2012 at 11:26

GoogleCodeExporter commented 9 years ago

Original comment by weihuali...@gmail.com on 17 Mar 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Gotta add my  Me too!  I tried to develop a keyboard app. How does one add a 
carriage return, line feed, bell etc? Without an ASC___xx  block, there is a 
lot of untionality that is going to stump us.

Original comment by gjcah...@gmail.com on 7 Mar 2013 at 5:15