Thema: Delphi Button im opendialog

Einzelnen Beitrag anzeigen

Sebastian Nintemann
(Gast)

n/a Beiträge
 
#2
  Alt 10. Apr 2003, 10:43
Hallo ~Freeze~

Zitat von Delphi OH:
Description

Execute opens the file-selection dialog, returning true when the user selects a file and clicks Open. If the user clicks Cancel, Execute returns false.
Delphi-Quellcode:
if OpenDialog1.Execute then

  Memo1.Lines.LoadFromFile(OpenDialog1.FileName)
else

  Memo1.Lines.Clear;
Ich denke das Beispiel sagt alles, prüfe einfach mit einer if-Bedingung ob Opendialog.Execute true oder false liefert.

Gruß, Sebastian
  Mit Zitat antworten Zitat