Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27437

VS 2008 Problem getting required GPS datafrom listbox

$
0
0
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
Attached Images
 

Viewing all articles
Browse latest Browse all 27437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>