I'm not an expert on PEEK and POKE, however...

by TheBOB (Login qb432l)
Mod

 

VARSEG returns the segment address of a variable. You need VARPTR to retrieve its offset value(s). I believe you must first establish the segment address:

n = 10049
DEF SEG = VARSEG(n)

...then PEEK at the offsets of the variable:

PRINT PEEK(VARPTR(n))
PRINT PEEK(VARPTR(n) + 1)
PRINT PEEK(VARPTR(n) + 2)
PRINT PEEK(VARPTR(n) + 3)

-Bob


Posted on Apr 19, 2010, 7:33 AM

Respond to this message   

Return to Index

Response TitleAuthor and Date
Yes but i had the Adress befor with VARSEG so don't need DEFSEG...Lisztfr on Apr 19
 You need the DEF SEGBen on Apr 19
 That's fine, but not the point...TheBOB on Apr 19
  Ain't working..Lisztfr on Apr 20
   Don't mix segments and offsetsArtelius on Apr 20
    Does it make sens ?Lisztfr on Apr 20
     Because it's a floating point numberBen on Apr 20
      Ok !Lisztfr on Apr 20
       * Place the asterisks IN the empty message titles you two!Clippy on Apr 20

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement