Public Property inputChordsUser As String()
...Later in the code
Dim Final As String = inputtedChord & LegitFinalExtensions
CounterPublic += 1
SendChords(Final, CounterPublic)
End If
End Sub
Public Sub SendChords(ByRef Final As String, ByRef CounterPublic As Integer)
inputChordsUser(CounterPublic) = Final
End Sub
End Class
I'm getting a NullReferenceException Thrown at the SendChords Sub. From what I can see, inputChordsUser is set to Nothing. Duh. I'm not trying to use it, i'm trying to set it.
Why is this? I've tried providing inputChordsUser as an argument with the call, but nothing.
Any good fixes?
List(Of T)where T stands for Type.