Page 1 of 1

'@' can't be used to get string address

Posted: Tue Nov 15, 2016 9:44 pm
by bbanelli
I don't know if this is a bug or a feature, but both PeekC and PeekU have 'offset' parameter and I can't access string via @.

Code: Select all

Define s.s
s = "abcdefgh"
Debug PeekU(@s, 0)
Image

This code doesn't work as well returning the same error:

Code: Select all

Text$ = "Hello"
*Text = @Text$
What is the purpose of offset? Is there a point of using PeekC; that is, shouldn't all code be Unicode anyway?

Re: [SB 2.00 b7] '@' can't be used to get string address

Posted: Sat Nov 26, 2016 6:07 pm
by Fred
String in SB aren't memory buffer, that's why you can't access them.