V Vircop Member Licensed User Longtime User Oct 16, 2012 #1 Hello, just a quick question regarding initializing a (rather big) byte array: I'm aware that bytes are actually signed (not the problem) but how do i initialize a byte array without using file functions? in c that would look like unsigned char myData[] = { 0xFF, 0xEA, 0x00, 0x90, 0xFF, 0xAA }; (the data inside is much more; just as example) Any suggestions?
Hello, just a quick question regarding initializing a (rather big) byte array: I'm aware that bytes are actually signed (not the problem) but how do i initialize a byte array without using file functions? in c that would look like unsigned char myData[] = { 0xFF, 0xEA, 0x00, 0x90, 0xFF, 0xAA }; (the data inside is much more; just as example) Any suggestions?
NJDude Expert Licensed User Longtime User Oct 16, 2012 #2 Like this: B4X: Dim X() As Byte X = Array As Byte(...) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2012 #3 Just to complete the example: B4X: X = Array As Byte(0xFF, 0xEA, 0x00, 0x90, 0xFF, 0xAA) Upvote 0