I have the following code:
When i run the code i get:
and it points to the 'SerialSetting.line.add(tempText)'
Am i trying to implement this all wrong, because is seems logical to me, but i am a Noooooob
Thanks
Stu
VB.NET:
<Serializable()> Private Structure Sometext
Public Sentance As String
Public Text As String
End Structure
<Serializable()> Private Structure SerialSettings
Public PortNumber As String
Public baudRate As String
Public line As List(Of Sometext)
End Structure
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim SerialSetting As SerialSettings
Dim tempText As New Sometext
SerialSetting.PortNumber = "COM1"
SerialSetting.baudRate = "4800"
tempText.Sentance = "Start"
tempText.Text = "Main"
SerialSetting.line.Add(tempText)
End Sub
When i run the code i get:
and it points to the 'SerialSetting.line.add(tempText)'
Am i trying to implement this all wrong, because is seems logical to me, but i am a Noooooob
Thanks
Stu