Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE STRING and @string$
#2
LCD Wrote:Is this a bug or "feature"? If it is a feature, how to find out the adress of a string stored in Variable?
Strings are just pointers to memory blocks (chars), so:
Code:
DIM a$;

PRINT PEEK(Uinteger, @a$)
a$ = "Hello" : REM Assigning a new value *changes* it [u]dynamic[/u] address

PRINT PEEK(Uinteger, @a$)
Notice a$ address pointer changes (reallocates) a$ on each assignation.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)