TIP: Click on subject to list as thread! ANSI
echo: delphi
to: WILLY JANSEN
from: YVES VAN HAL
date: 1996-06-18 09:38:00
subject: Error handling

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.