No clue if this is an effective way of doing it or not (or if it'll even compile; I haven't tested it), but meh!
min := 0;
min_index = 0;
for i := 1 to 32 do
  if (min_index = 0) or (array < min) then begin
    min_index := i;
    min := array;
  end;