Loading Data as a single Byte

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm attempting to pass 2 variables as type Byte as it is required to be type
byte for encryption. What syntax shoule I use in vb.net. Everything I have
tried has told me a value of type byte can not be converted into a
1-diesional array of Byte? Any thoughts?

Thanks

Glenn
 
G Leifheit said:
I'm attempting to pass 2 variables as type Byte as it is required to be
type
byte for encryption. What syntax shoule I use in vb.net. Everything I
have
tried has told me a value of type byte can not be converted into a
1-diesional array of Byte?

'Dim b() As Byte = {1, 2, 3}' or '... = New Byte() {1, 2, 3}'.
 
G,

I think you do not mean this however your question would in my opinion give
as answer this.

dim a() as byte
a(0) = 1
a(1) = 2

I think that you should explain from where those values come.

Cor
 
Cor,

Cor Ligthert said:
I think you do not mean this however your question would in my opinion
give as answer this.

dim a() as byte

=> 'Dim a(1) As Byte'.
 
Herfried,

Thanks, you would probably not believe it, this was a typo.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top