Code: Select all
st.s = "My String"
ptr = @st.s
lg = Len(st.s) * 2
For mem=ptr To ptr+lg
Debug PeekC(mem)
Next mem
30976
121
8192
32
21248
[...]
105
28160
110
26368
103
0
0
If I change my code to use PeekA, as below, it shows me 0 for the alternate bytes. Therefore, I'm not sure I understand why I get 30976, 8192 for PeekC.
Code: Select all
st.s = "My String"
ptr = @st.s
lg = Len(st.s) * 2
For mem=ptr To ptr+lg
Debug PeekA(mem)
Next mem