|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Instantiate a byte array with hex valuesI'm trying to do something like this, but can't get the syntax correct, can someone help?
Dim myBytes() As Byte = {0x2b, 0x0c, 0x02, 0x87, 0x73, 0x1c, 0x00, 0x85, 0x4A} Thanks! "Raterus" <rate***@hotmail.com> schrieb: \\\>Dim myBytes() As Byte = {0x2b, 0x0c, 0x02, 0x87, 0x73, >0x1c, 0x00, 0x85, 0x4A} Dim Bytes() As Byte = {&H2B, &HC, &H2, &H87, ...} /// Simply replace '0x' with '&H' and remove leading zeros. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Thanks, that work great! It's so hard to search for things like that!!
Show quoteHide quote "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:ecc0xlXXGHA.4716@TK2MSFTNGP02.phx.gbl... > "Raterus" <rate***@hotmail.com> schrieb: >>Dim myBytes() As Byte = {0x2b, 0x0c, 0x02, 0x87, 0x73, >>0x1c, 0x00, 0x85, 0x4A} > > \\\ > Dim Bytes() As Byte = {&H2B, &HC, &H2, &H87, ...} > /// > > Simply replace '0x' with '&H' and remove leading zeros. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Saving Jpeg/Exif info Please Help.
Total VB.Net newbie - Directory.Exists question How do I extend My.Resources System.Timers.Timer.Elapsed event not firing How to simplifying boolean algebra expression? How do I find and use a Window Handle? "Looksalike" algorithm How to simplifying boolean algebra expression? Error connectiong to database close automatically a form |
|||||||||||||||||||||||