Howto Use TOpenDialog/pl
From Free Pascal wikiJump to navigationJump to search
Simple and short guideline:
1. Place the OpenDialog widget on your form (anyplace, since it will be not visible).
2. In your code write someting similiar to:
var filename : string; if OpenDialog1.Execute then begin filename := OpenDialog1.Filename; ShowMessage(filename); end;
The Filename property returns the full filename including drive and path.