vali khandangoll Active Member Jan 24, 2021 #1 Hi all of you. how can i use character ascii code ? for example "A" --> 65
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2021 #2 1. Read this: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content 2. B4X: Dim b() As Byte = Array As Byte(65) 'almost the same as = "A" Upvote 0
1. Read this: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content 2. B4X: Dim b() As Byte = Array As Byte(65) 'almost the same as = "A"
vali khandangoll Active Member Jan 25, 2021 #3 Erel said: 1. Read this: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content 2. B4X: Dim b() As Byte = Array As Byte(65) 'almost the same as = "A" Click to expand... Sorry I mean the opposite. I want to give the letters and get the code Upvote 0
Erel said: 1. Read this: https://www.b4x.com/android/forum/threads/strings-and-bytes.66729/#content 2. B4X: Dim b() As Byte = Array As Byte(65) 'almost the same as = "A" Click to expand... Sorry I mean the opposite. I want to give the letters and get the code
Erel B4X founder Staff member Licensed User Longtime User Jan 25, 2021 #4 There is no encoding in B4R. Bytes = characters. B4X: Dim b() As Byte = "A" Log(b(0)) '65 Upvote 0
vali khandangoll Active Member Jan 25, 2021 #5 Erel said: There is no encoding in B4R. Bytes = characters. B4X: Dim b() As Byte = "A" Log(b(0)) '65 Click to expand... thanks Upvote 0
Erel said: There is no encoding in B4R. Bytes = characters. B4X: Dim b() As Byte = "A" Log(b(0)) '65 Click to expand... thanks