Here's my code that doesn't work, I get thrown lots of exceptions and can't seem to understand why...
How can I fix this?
Visual Basic:
Friend Structure structTest
Dim varA As String
Dim varB As Integer
Dim varC() As String
End Structure
Friend struct() As structTest
struct(0).varA = "blabla"
struct(0).varB = 10
struct(0).varC(0) = "aaa"
struct(0).varC(1) = "bbb"
struct(0).varC(2) = "ccc"
This is what happens at line: struct(0).varA = "blabla"A first chance exception of type 'System.NullReferenceException' occurred in Network Switcher.exe
Object reference not set to an instance of an object.
How can I fix this?