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:
Code: Copy
Dim myBytes() As Byte = { 0x26, 0xdc, 0x00 }

Then I tried it with different notation

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

But no succes.

How can I do something like that in B4A?
 
Back
Top