Hello everyone, not very current on VB.net as have not had any projects for a year or two.
This is my problem,
I am trying to get specific GPS information from a listbox into a textbox.
The data from the gps needs to be updated every 10 seconds or so and the order of the information changes every time it updates.
So I need to search for the preceeding code for example "$GPRMC", is if I can then load that perticular line into a textbox, I can then pick the info that I need.
I have included a picture of the listbox with the data loaded and have highlighted the information that I need to load into the textbox.
Now I know that should be easy, but as I am not very current in VB at the moment, I would appreciate some help more knowledgeable than I.
Thanking you in advance,
Merry xmasAttachment 94527
Dim cnt As Double = 25
cnt = 0
Do While cnt < 24
Label2.Text = Microsoft.VisualBasic.Left(Label2.Text, 6)
If Label2.Text = "$GPGGA" Then '"$GPGGA"
Label2.Text = (ListBox1.Items(cnt))
Label7.Text = cnt
End If
cnt = cnt + 1
Loop
This is my problem,
I am trying to get specific GPS information from a listbox into a textbox.
The data from the gps needs to be updated every 10 seconds or so and the order of the information changes every time it updates.
So I need to search for the preceeding code for example "$GPRMC", is if I can then load that perticular line into a textbox, I can then pick the info that I need.
I have included a picture of the listbox with the data loaded and have highlighted the information that I need to load into the textbox.
Now I know that should be easy, but as I am not very current in VB at the moment, I would appreciate some help more knowledgeable than I.
Thanking you in advance,
Merry xmasAttachment 94527
Dim cnt As Double = 25
cnt = 0
Do While cnt < 24
Label2.Text = Microsoft.VisualBasic.Left(Label2.Text, 6)
If Label2.Text = "$GPGGA" Then '"$GPGGA"
Label2.Text = (ListBox1.Items(cnt))
Label7.Text = cnt
End If
cnt = cnt + 1
Loop