Local sSource:String
Local sTest:String
sSource = "This is a test"
sTest = sSource[1]
Print sTest
Print sSource[1]
given that source code
if i run it, it prints
104
104
and not
h
h
which is what i was expecting
why is that? And how do i fix it without using Mid (i want to use slices)
How come
Print sSource[1..] prints
his is a test
but
Print sSource[1..1] prints nothing?
I'm confused.
Note: I've search the site and the examples/posts i found described this as working:
http://www.blitzmax.com/Community/posts.php?topic=59682#665364
Local sTest:String
sSource = "This is a test"
sTest = sSource[1]
Print sTest
Print sSource[1]
given that source code
if i run it, it prints
104
104
and not
h
h
which is what i was expecting
why is that? And how do i fix it without using Mid (i want to use slices)
How come
Print sSource[1..] prints
his is a test
but
Print sSource[1..1] prints nothing?
I'm confused.
Note: I've search the site and the examples/posts i found described this as working:
http://www.blitzmax.com/Community/posts.php?topic=59682#665364