Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE STRING and @string$
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:
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.

Messages In This Thread

Forum Jump:

Users browsing this thread: 1 Guest(s)