doe's anyone have a better explaination pointers? in the help docs it says ` Ptr as DWORD
Ptr=0x00FF8820
*Ptr=42
PRINT *Ptr
The above code simply declares Ptr as a DWORD variable, assigns the variable a
random area of memory, writes the value 42 into that location of memory and
then reads the same address back, the contents of which is to be printed to the
screen.`
does this mean it's possible to get an address of a variable, doesn't `Ptr=0x00FF8820` just assign Ptr the value of the hex number? plus if this number is low it causes an error, any ideas.
also is this code working right.
Ptr as DWORD
Ptr=0x0064f794
*Ptr=42
PRINT "Ptr = ",Ptr
PRINT "hex$(Ptr) = ",hex$(Ptr)
PRINT "*Ptr = ",*Ptr
PRINT "hex$(*Ptr) = ",hex$(*Ptr)
PRINT "hex$(28419712698286122) = ",hex$(28419712698286122)
PRINT "0x2a = ",0x2a
wait key
end
i'm not sure how a number that large can still return 42(0x2A).