I'm not an expert on PEEK and POKE, however...by (Login qb432l)R 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 |
| Response Title | Author and Date |
| Yes but i had the Adress befor with VARSEG so don't need DEFSEG... | Lisztfr on Apr 19 |
| You need the DEF SEG | Ben on Apr 19 |
| That's fine, but not the point... | on Apr 19 |
| Ain't working.. | on Apr 20 |
| Don't mix segments and offsets | on Apr 20 |
| Does it make sens ? | Lisztfr on Apr 20 |
| Because it's a floating point number | Ben on Apr 20 |
| Ok ! | Lisztfr on Apr 20 |
| * Place the asterisks IN the empty message titles you two! | on Apr 20 |