|
I have a dynamically shaped array in unit1
index_Arrary: Array of Integer;
setlength (index_Arrary, imagelist1.Count);
for i: = 0 to toolbar1.ButtonCount -1 do
begin
index_Arrary [i]: = toolbar1.Buttons [i] .ImageIndex;
end;
I also have an array index_Arrary2 in unit2: Array of Integer; for receiving!
My question is how do I assign all the contents of my array in cell 1 to this array in cell 2?
My unit2 is the main form that runs first! If it is assigned, the array of unit1 has no allocated space and definitely reports an exception!
What should I do? |
|