Android Question Bytes array from hex

gglaz

Member
Licensed User
Longtime User
Hello,

I tried this code but for some reason it does not work, it says syntax error:
B4X:
Dim myBytes() As Byte = { 0x26, 0xdc, 0x00 }

Then I tried it with different notation

B4X:
Dim myBytes() As Byte = { &H26, &Hdc, &H0 }

But no succes.

How can I do something like that in B4A?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…