English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

if (GPSSerial.gpsData.Count > 0)
{
textBox1.Text = GPSSerial.gpsData.Dequeue();



string r = textBox1.Text;

string[] values = r.Split(',');

// string newstring = r.Remove(2,6); REMOVE FUNCTION


if (values[0] == "$GPRMC")
{

textBox2.Text = values[3];

textBox3.Text = values[5];
}
}
Textbox 2 and 3 both output the latitude and longitude of the gps position. They are currently displayed in a long string.
How do i insert a degrees character so it displays readable lat and long values?

2007-01-21 06:08:59 · 1 answers · asked by Alex M 1 in Computers & Internet Programming & Design

1 answers

The degree character is long ascii 248. (on PC's)
It appears you have split the data, so you need to insert the degree character at the right point in the character array that is the string or use MID

2007-01-21 16:16:12 · answer #1 · answered by Mike1942f 7 · 0 0

fedest.com, questions and answers