mmilan
asked on
About OpenDialog
How can I find out how many files are selected when I use OpenDialog for opening files?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Barry, you gotta be fast at this site. The last 5 times I wrote answers, somebody came up before me :-) ..but I guess this will clear up things:
That's actually easy enough:
This will also do:
procedure TForm1.Button1Click(Sender : TObject);
begin
Memo1.Clear;
If OpenDialog1.Execute then
memo1.Lines.AddStrings(Ope nDialog1.F iles);
end;
That's actually easy enough:
This will also do:
procedure TForm1.Button1Click(Sender
begin
Memo1.Clear;
If OpenDialog1.Execute then
memo1.Lines.AddStrings(Ope
end;
procedure TForm1.Button1Click(Sender
var
a:integer;
begin
opendialog1.Execute;
a:=opendialog1.Files.Count
showmessage(inttostr(a));
end;
Regards Barry
Williams your too fast :-)