Jerry,
In addition to Mattias's comments.
Just be warned, that your Bytes array will be "off by one" then the total of
your Part1 & Part2.
Remember that when you define an Array the Upper bound is given, not length.
The lower bound is always Zero.
If you want Bytes to contain the same number of elements as Part1 & Part2
you need to subtract one from the total of their lengths...
Something like:
Dim Bytes(Part1.Length + Part2.Length -1 ) As Byte
For example:
Dim part1(10), part2(10) As Byte
Dim Bytes(Part1.Length + Part2.Length) As Byte
Part1 & Part2 will each have 11 elements, while Bytes will have 23 elements.
Hope this helps
Jay
"Jerry Camel" <rl*****@msn.com> wrote in message
news:eO**************@tk2msftngp13.phx.gbl... VB seems to accept both versions of this declaration... Are they
equivalent?
Dim Bytes() As Byte = New Byte(Part1.Length + Part2.Length) {} 'Without
the braces, vb complains that Byte has no constructor.
Dim Bytes(Part1.Length + Part2.Length) As Byte
Thanks,
Jerry