I need an array and each item in the array is an array of bytes like this, but I’m not sure how to do the:
Dim xx as array
xx(0) *as byte* = {&H12, &HFF}
xx(1) *as byte* = {&H45, &HFE}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can make a nested or “jagged” byte array like this:
This will create an empty array of 6 byte arrays. Each element in the outer array will be
Nothinguntil you assign an array to it, like this:However, it would probably be a better idea to make a
Listof byte arrays, like this:This will create an empty list of byte array, which will stay empty until you put some byte arrays into it, like this:
Unlike the nested array, a
List(Of Byte())will automatically expand to hold as many byte arrays as you put into it.For more specific advice, please tell us what you’re trying to do.