I'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! 2 13658
"Raterus" <ra*****@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!!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:ec**************@TK2MSFTNGP02.phx.gbl... "Raterus" <ra*****@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/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Cook |
last post by:
Java's InetAddress class has some methods that use
a byte-array to hold what it describes as a 'raw IP address'.
So, I assume that they mean an array like:
byte ba = new byte;
would hold an...
|
by: jeff |
last post by:
how do you convert form byte to Int32 while retaining the binary
value of the byte array
|
by: cjw |
last post by:
I need to read an 'unsigned char' array and save it as a bit array
(values are only 0s or 1s). When processing, have to do math
operations such as summing up the values etc. Pl let me know an...
|
by: Dmitri Shvetsov |
last post by:
Hi All,
Did somebody try to get the Hash code from byte array? The method exists,
the program is compilable but...)))
Try!-) Every time you can get the different code from the same array, and...
|
by: Aaron |
last post by:
How converts a string to a byte and then add it to a byte array? I
tried 2 different methods and both failed to work.
For example:
Dim A as string
Dim B(2) as Byte 'array (from 0 to 2)
...
|
by: moondaddy |
last post by:
I'm writing an app in vb.net 1.1 and need to convert a byte array into a
string, and then from a string back to a byte array.
for example
Private mByte() as New Byte(4){11,22,33,44}
Now how...
|
by: Vince Panuccio |
last post by:
Hello,
If im looking for a pattern of byes in a byte array, what would be the
best approach?
I could convert the array into a string and use IndexOf recursivly by
remembering the last...
|
by: ThunderMusic |
last post by:
Hi,
The subject says it all... I want to use a byte and use it as byte* so I
can increment the pointer to iterate through it.
What is the fastest way of doing so in C#?
Thanks
ThunderMusic
|
by: Scott Townsend |
last post by:
So I need to talk to a devices that expects all of the bits and bytes I sent
it to be in specific places (not yet 100% defined).
I wanted to create a structure/class with all of the data in it...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |