Hello Willy,
> 2) How can I detect or the Cancel button is pressed by a Open-Dialog?
var
check : boolean
begin
check:=Opendialog1.execute;
if check=true
then
{ pressed the OK button }
.....
else
{ pressed the cancel button }
......
end;
OR
begin
if Opendialog1.execute
then
{ pressed the OK button }
.....
else
{ pressed the cancel button }
......
end;
More info can be found with the execute method ;-)
Hasta la Modem,
Yves
--- FMail 0.92
---------------
* Origin: First there was Oracle, finally we got Delphi (2:292/8014.9)
|