Two strings in one
Bstamp_gps
Posts: 9
Hi all,
How can we add two (or more) strings in one?
I have:
DAT Header byte "ID,8888,",0
And
match_inp(string("$GPRMC,"), 1)
RMC_Datas := match_inp(string("*"), 0)
Which contain: 082441.66,A,0056.43297,N,00054.96627,W,0.0,317.0,120707,0.0,W
I need:
ModStr := Header,RMC_Datas
ID,8888, 082441.66,A,0056.43297,N,00054.96627,W,0.0,317.0,120707,0.0,W
Thanks.
How can we add two (or more) strings in one?
I have:
DAT Header byte "ID,8888,",0
And
match_inp(string("$GPRMC,"), 1)
RMC_Datas := match_inp(string("*"), 0)
Which contain: 082441.66,A,0056.43297,N,00054.96627,W,0.0,317.0,120707,0.0,W
I need:
ModStr := Header,RMC_Datas
ID,8888, 082441.66,A,0056.43297,N,00054.96627,W,0.0,317.0,120707,0.0,W
Thanks.
Comments
HEader byte "ID...."
followup byte 0[noparse][[/noparse]100] ' or whatever seems safe
Then do:
BYTEMOVE (followup, RMC_DATES, 100)
You can also try to find the correct length of the string by e.g. looking for the zero delimiter.
BTW: What does match_inp do? It has to allocate some space for the string....
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters
Southern Illinois University Carbondale, Electronic Systems Technologies
Thanks deSilva for putting me on the right track as well