POKE AGAIN!!
Posted: Fri Apr 01, 2005 5:52 am
Can somebody explain that to mer:
Let's have A$(1,1)="A"
Following the hereunder code I can print AD(1,1), AD(1,1)+1, AD(1,1)+2
line 140
The repective values are "1", " 137" and "18"
But if I want to get thes values in Z1 and Z2 (line 150) I get "0" and"0"
Why? Z1 was primitively 1 for instance and Z2 should be 256X137?
120 DEF SEG
130 AD(1,1)=VARPTR(A$(1,1))
140 PRINT PEEK(AD(1,1)),PEEK(AD(1,1)+1),PEEK(AD(1,1)+2)
150 Z1=PEEK(AD(1,1)+2):PRINT Z1:Z2=256*PEEK(AD(1,1)+1):PRINT Z2
I am completly lost and understand less and less!!!!
You can run this in QB7.1 to see.
Let's have A$(1,1)="A"
Following the hereunder code I can print AD(1,1), AD(1,1)+1, AD(1,1)+2
line 140
The repective values are "1", " 137" and "18"
But if I want to get thes values in Z1 and Z2 (line 150) I get "0" and"0"
Why? Z1 was primitively 1 for instance and Z2 should be 256X137?
120 DEF SEG
130 AD(1,1)=VARPTR(A$(1,1))
140 PRINT PEEK(AD(1,1)),PEEK(AD(1,1)+1),PEEK(AD(1,1)+2)
150 Z1=PEEK(AD(1,1)+2):PRINT Z1:Z2=256*PEEK(AD(1,1)+1):PRINT Z2
I am completly lost and understand less and less!!!!
You can run this in QB7.1 to see.