i := DataModule1.qry1.Fields[0].AsInteger;
SetLength(i, Length(i) + 1); i[Length(i) - 1] := DataModule1.qry1.Fields[0].AsInteger;