Hi
To explain @Чебурашка's idea...
It goes something like this:
procedure TForm1.AddFiles(aFiles: TStrings);
var
S: string;
begin
ZQuery1.Close;
ZQuery1.SQL.Clear;
ZQuery1.SQL.Text := 'INSERT INTO lista(File) values(:File)';
for S in aFiles do begin
ZQuery1.ParamByName('File').AsString := S;
ZQuery1.ExecSQL;
end;
ZQuery1.Close;
ZQuery1.SQL.Clear;
ZQuery1.SQL.Text := 'SELECT * FROM lista';
ZQuery1.Open;
end;
And then you have to feed it:
procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
begin
AddFiles(OpenDialog1.Files);
end;
end;
Of course, you have to set OpenDialog1.Options to include "doMultiSelect",
in the Object Inspector... (...or something like that, can't remember exactly).
HTH
Regards Benny