Commas in string variable?
#1
This might be one of those things that "everyone knows," but I missed the memo. Is there any way to input a string variable which includes commas?

For example, in NMEA 0183 "sentences," all field delimiters are commas. Of course, one option is to change all commas to something else, like semicolons or just spaces. Which I have done, and then afterwards replaced that delimiter with a proper comma.

Is there any way I could input the actual NMEA string as one variable, then in the next step split out each character? I didn't see anything about this limitation in the wiki.

Here is an example of a NMEA 0183 GLL sentence, from a GPS receiver (identified by GP), which provides geo position, UTC time, and "mode," always in ASCII:

$GPGLL,3953.88008971,N,10506.75318910,W,034138.00,A,D*7A

The last two characters, after the * character, are the XOR-based checksum, as two hex characters.
Reply


Messages In This Thread
Commas in string variable? - by bert22306 - 09-07-2022, 11:59 PM
RE: Commas in string variable? - by SMcNeill - 09-08-2022, 12:25 AM
RE: Commas in string variable? - by bert22306 - 09-08-2022, 12:59 AM
RE: Commas in string variable? - by Pete - 09-08-2022, 11:38 AM
RE: Commas in string variable? - by bert22306 - 09-09-2022, 04:36 AM



Users browsing this thread: 1 Guest(s)