Sign in Join
Wiki copytemporary

Howto Use TOpenDialog/de

Deutsch · English · Español · Français · Polski · Slovenčina · Suomi · Русский · 日本語

Zurück zu den Zusätzlichen Informationen.\

Wie man den TOpenDialog benutzt

Einfache und kurze Richtlinie:

1. Legen Sie eine OpenDialog-Komponente auf Ihrem Formular ab (an einer beliebigen Stelle, weil es später unsichtbar ist).

text
  Image:Component_Palette_Dialogs.png
 
  (Es ist der Dialog ganz links aus der Komponentenseite 'Dialogs')

2. Schreiben Sie in Ihrem Code etwas ähnliches wie:

pascal
   var filename : string;

   if OpenDialog1.Execute then
   begin
     filename := OpenDialog1.Filename;
     ShowMessage(filename);
   end;

Die Methode Execute zeigt den Datei-öffnen-Dialog an. Sie gibt true zurück, wenn der Benutzer eine Datei ausgewählt hat, false wenn der Benutzer abgebrochen hat.

Die Eigenschaft Filename gibt den vollständigen Dateinamen inklusive Laufwerk und Pfad zurück.

Siehe auch


From the Free Pascal wiki, page "Howto Use TOpenDialog/de", as it stood on 2019-09-05 after a change by Mischi, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 3, last changed by WikiArchive .

Edited on wiki.freepascal.org by 4 people, 2011–2019

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
Billyraybonestranslated (minor)
Billyraybonesgerman link; formatting (minor)
VincentText replace - "delphi>" to "syntaxhighlight>" (minor)
Olaf
Olaf (minor)
Mischiset language of syntaxhighlight to pascal. (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.