Quote: "DBPro array format "
thanks a lot Ian, got the answer. this is why I appreciate this forum a lot.
I found out that DBpro array format use the first 55 bytes to describe the comming array then followed by data.
now, voilaa:
dim a(10) as integer
for i=0 to 10 : a(i)=rnd(100) : next
aptr=get arrayptr(a(0))
aptr0=get arrayptr item ptr(aptr,0)
for i=0 to 10
poke integer aptr0,rnd(100)
inc aptr0,4
next
for i=0 to 10
printc " "+str$(a(i))
next
print
aptr0=get arrayptr item ptr(aptr,0)
for i=0 to 10
printc " "+str$(peek integer(aptr0))
inc aptr0,4
NEXT
wait key
end
it is still nice to know what info are hidden in the first 55 bytes.
thanks