Here is a simplified piece of the code giving me fits, and then the result.
ipstr$ = 192.168.1.12
serialprint "ipstr$ = "
serialprintln ipstr$
serialprintln ""
serialprint "length of ipstr$ = "
serialprintln len(ipstr$)
serialprintln ""
check = 8
temp$ = right(ipstr$,check)
serialprint "temp$ = "
serialprintln temp$
serialprintln ""
serialprint "length of temp$ = "
serialprintln len(temp$)
serialprintln ""
end
The result when run...
ipstr$ = 192.168.1.12
length of ipstr$ = 12
temp$ = 168.1.12.
length of temp$ = 9
Done...
You can see that when I get the temp$, it has an extra dot at the end for some reason. I ask for the 8 rightmost characters in the ipstr$ and I get the extra dot and the length shows up as 9. What in tarnations am I not getting here? Can someone try this simple code and see if they get the same result?
I am using espbasic version 1.69
Thanks a million.
Edit...
I did a variable dump and the temp$ shows correctly without the dot at the end. Not sure why it shows up after the right string function but not in the variable dump. Of course this hoses the parser...