var i:integer; begin opendialog1.options:=[ofallowmultiselect,offilemustexist]; if opendialog1.execute then begin listbox1.clear; with opendialog1.files do for i:=0 to count-1 do listbox1.items.add(string[i]); end; label1.caption:=extractfiledir(opendialog1.files[0]); end;
i:integer;
begin
opendialog1.options:=[ofallowmultiselect,offilemustexist];
if opendialog1.execute then
begin
listbox1.clear;
with opendialog1.files do
for i:=0 to count-1 do
listbox1.items.add(string[i]);
end;
label1.caption:=extractfiledir(opendialog1.files[0]);
end;