B4J Question char to keycode?

ilan

Expert
Licensed User
Longtime User
hi, is there a snipped to convert char to keycode in b4j?

i tried using java object but could not get it working

thanx
 
Solution
The return type should be Object (I've updated my post).

I have a feeling that you are looking for the unicode code point.

B4X:
Log(Asc("a"))

ilan

Expert
Licensed User
Longtime User

oopps, i was too early with marking your answer as the solution. what i get is just the STRING back and not the KeyCode

 
Upvote 0

ilan

Expert
Licensed User
Longtime User
The return type should be Object (I've updated my post).

I have a feeling that you are looking for the unicode code point.

B4X:
Log(Asc("a"))

exactly, this is what I was looking for. so simple!
thank you very much Erel!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…