Does the code below look okay and will Button13Click return the memory used by the array?
SetLength(box, 0) would already be enough, or even shorter, box := nil;