Assuming this is internal to a method, using Instant VB:
Dim buff As Byte() = New Byte(size - 1){}
Note that in VB you specify the upper bound when sizing an array, unlike in
C# where the length is specified, so the "- 1" here is necessary.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant C++: C# to C++ Converter
Instant J#: VB.NET to J# Converter
"eagle" wrote:
How can I convert this c# (?) procedure to vb? I get everything but the
byte conversion:
byte[] buff = new byte[size];
Thank your for your help