-->
Page 1 of 2

weird string problem if using hashtag (really pound sign)

PostPosted: Mon Feb 01, 2016 11:27 am
by viscomjim
When I do this...

t$ = "#mmbasiciscool"
serialprintln t$

It prints a blank

But if I do this...

t$ = "mmbasiciscool"
serialprintln t$

it prints mmbasiciscool.

Problem is, I need to be able to use the # sign in a string to send twitter stuff. Any ideas here?

EDIT...
Save this program as default and run it. After running it, go back to edit and open the default program and see what it does to the listing. Very strange.

t$ = "#mmbasiciscool"
serialprint "first one =
serialprintln t$
t$ = "mmbasiciscool"
serialprint "second one = "
serialprintln t$
end

Thanks!!!!

Re: weird string problem if using hashtag (really pound sign

PostPosted: Mon Feb 01, 2016 10:11 pm
by heckler
Minor thing... but did you notice that
Code: Select allserialprint "first one =

was missing the closing quote sign??

Also It usually is easier to read if you paste your sample code inbetween the code tags it's the "</>" up in the tool bar.

dwight

Re: weird string problem if using hashtag (really pound sign

PostPosted: Tue Feb 02, 2016 3:01 pm
by viscomjim
I fixed that line and ran the program. Same problem. It won't print the line with the # in it. Very strange.

Code: Select allt$ = "#mmbasiciscool"
serialprint "first one = "
serialprintln t$
t$ = "mmbasiciscool"
serialprint "second one = "
serialprintln t$
end

Re: weird string problem if using hashtag (really pound sign

PostPosted: Tue Feb 02, 2016 5:57 pm
by Mmiscool
Will be looking in to this. Have not determined what the problem is yet. Mabe some thing inn the decoding of the post request.