H Herfried K. Wagner [MVP] May 2, 2005 #2 Nikolay Petrov said: what "Dim recv() As Byte = New Byte(1) {}" means? Click to expand... It means that a byte array containing a two bytes is created (indices 0 through 1). I'd use the code below instead because for me it's more readable: \\\ Dim recv(1) As Byte ///
Nikolay Petrov said: what "Dim recv() As Byte = New Byte(1) {}" means? Click to expand... It means that a byte array containing a two bytes is created (indices 0 through 1). I'd use the code below instead because for me it's more readable: \\\ Dim recv(1) As Byte ///
H Herfried K. Wagner [MVP] May 2, 2005 #4 Nikolay Petrov said: actually I wanted to know what the "{}" means? Click to expand... It indicates that 'New Byte(1)' is intended to create an array instead of calling a parameterized constructor of the 'Byte' class.
Nikolay Petrov said: actually I wanted to know what the "{}" means? Click to expand... It indicates that 'New Byte(1)' is intended to create an array instead of calling a parameterized constructor of the 'Byte' class.