OK so basically I am having trouble saving an array wich has the user defined TYPE. Any help would be greatly appreciated. Check out the code as I pasted it...it's working but it's before I apply the user defined types. Here is an example of how I had the code (that didnt work):
TYPE Charsetup
Name AS STRING
Class AS STRING
Age AS INTEGER
ENDTYPE
savearray:
DIM Chars(2) AS Charsetup
filename$ = "chararray.dat"
Chars(1).Name="Taemon Waters"
Chars(1).Class="Shaman"
Chars(1).Age=22
TEXT 222,222, " Saving array..."
WAIT 1500
SAVE ARRAY filename$,Chars(2):CLS
GOSUB Larray
Larray:
LOAD ARRAY filename$,Chars(2)
TEXT 222,200, Chars(1).Name
TEXT 222,222, Chars(1).Class
PRINT Chars(1).Age
WAIT 2500
END
"The secret to creativity is knowing how to hide your sources"
-Albert Einstein