T trueboss323 Active Member Licensed User Longtime User Dec 18, 2019 #1 I have a code like this: B4X: Dim x As Char = "A" x = x + 1 But it will not work because x is a character. In Java you can do something like: B4X: char x='A'; x++; System.out.println(x); And it will print 'B' . How can I do this in B4A?
I have a code like this: B4X: Dim x As Char = "A" x = x + 1 But it will not work because x is a character. In Java you can do something like: B4X: char x='A'; x++; System.out.println(x); And it will print 'B' . How can I do this in B4A?
thetahsk Active Member Licensed User Longtime User Dec 18, 2019 #2 try this to increment a char by one B4X: Dim x As Char ="A" x=Chr(Asc(x)+1) Log(x) Upvote 0