string ss = "Hello World"
byte ptr bb = strptr(ss)
long ii = 1
print bb[ii+1] cr ' Correctly prints 101
print bb[(ii+1)] cr ' IMO, should print 101, but prints 72.
print bb[(ii)+1] cr ' Correctly prints 101
I was curious how ScriptBasic would handle my silly example. Glad to see it's smarter than the programmer. :)Code: Script BASIC
PRINT ((1+1)),"\n"
C:\ScriptBASIC\examples>sbc ()test.sb
2
C:\ScriptBASIC\examples>