Revision 1 of 3, by Trev on 2-17-2020. The page as it is now.
Howto Use TOpenDialog/ja
TOpenDialog の使い方
<figure> <img src="topendialog.png" title="topendialog.png" /> <figcaption>topendialog.png</figcaption> </figure>
簡単な説明:
1. OpenDialogをFormに配置します。(アイコンは実行時には表示されませんので、Form上のどこにおいても大丈夫です。)

(OpenDialogは「Dialog」タブの左端)
2. 下記を参考にコーディングします。
var filename : string;
if OpenDialog1.Execute then
begin
filename := OpenDialog1.Filename;
ShowMessage(filename);
end;Executeメソッドによりファイルを開くダイアログが表示されます。 ファイルが選ばれたときは true が返り値となり、キャンセルしたときは false が返り値となります。
Filenameプロパティは、 ドライブ名とパスを含んだファイル名(ファイルへのフルパス)を返り値とします。
関連項目
From the Free Pascal wiki, page "Howto Use TOpenDialog/ja", as it stood on 2020-02-17 after a change by Trev, 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.
