hi C,
If I follow your query correctly?, this what you need to do.
1. The incoming GPS string is ASCII stored as a string.
2. Assign this string as msg1 and call Proc wr_msg(xp As Byte, yp As Byte, msg1 As String)
3. String should display on the 5110 starting at the xp start location.
4. To get the section of the GPS string use MidStr(GPSstring, start letter Position of the Long value, number of letters in the section)
Ignore the $ letter
$GPGGA,000001,5030.000,N,1234.123,W,1,08,0.9,100.0,M,46.9,M,,*47?
ie: '1' of the 1234.123 , its length is 8, so msg1= MidStr(GPSstring, 24,8) = 1234.123
then to add the LONGITUDE label
msg1="LONGITUDE" + msg1
Proc wr_msg(xp As Byte, yp As Byte, msg1 As String)
NOTE:
The GPS string in the original program was stored is a buffer str1(rxi), so you could extract the Long by....
If you recall we used 'cp' to count the position and occurrence of the ',' because the length of the GPS string varies,
msg1=""
for x= 24 to 31
msg1= msg1+ str1(x)
next x
msg1="LONGITUDE" + msg1
Do you follow OK.
E