Hi and happy new year to all,
I have a wierd problem, my understanding in DBP is getting bigger by the day but I have hit a small problem.
Im making a load and save function in my program and im geting some wierd efects from it.
open to write 1,"test.tst"
write file 1,idx2
for idx = 1 to idx2
write file 1,aryMovie(idx).RefID `Dword Var
write word 1,aryMovie(idx).RefID2 `Word Var
write byte 1,aryMovie(idx).RefID3 `Boolean Var
next idx
close file 1
Now the problem is when i set the arrays up they hold the correct numbers (will say 26355, 30 and 1), yet once iv saved it and loaded the array back in all numbers are 0

. Loading being the reverse to saving.
I have read that you can change the numbers to strings and change them back on return but if i can i would like to keep them as numbers.
Can anyone give me any insight on whats going wrong

or is it just me
Thank you all for your time