Quantcast
Channel: Propeller 1 — Parallax Forums
Viewing all articles
Browse latest Browse all 2838

Strings and things...

$
0
0
I must be having a second day of being as thick as pig poo...

In the attached file I am using graphics.spin to (try and) display some text stored as a string in the variable 'dataGPS'. This which will change, hence the use of the variable. 'dataGPS' is 'byte dataGPS[80]

Displaying the text via a pointer doesn't work...
    
   dataGPS := string("GPRMC")
   gr.text(-60, 0, @dataGPS)

...but via 'String()' directly does.
   gr.text(-60, 0, string("GPRMC"))

Are the two not equivalent?

Thanks,

Hugh

Viewing all articles
Browse latest Browse all 2838

Trending Articles