Wow I didn't know the DIM command didn't erase the data! That's good to know...
By the way, this works. My game relies heavily on it
. Also, the ARRAY DELETE ELEMENT command can be used as well (and it automatically shifts everything else in the array down which is great)
Type UDT
text1 as string
integer1 as integer
float1 as float
Endtype
DIM Array(0) as UDT
Array(0).text1="TEXT!!!"
Array(0).integer1=5
Array(0).float1=2.5
Array Insert At Bottom Array(0)
Array(1).text1="NEW SLOT TEXT!"
Array(1).integer1=10
Array(1).float1=25.67
for p = 0 to Array Count(Array(0))
Print "Slot ",p," Text: ",Array(p).text1
Print "Slot ",p," Integer: ",Array(p).integer1
Print "Slot ",p," Float: ",Array(p).float1
Print " "
next p
wait key
Maybe you were thinking of multi-dimensional UDT arrays, in which case the DIM method would have to be used.
<---Spell casting battle game!