SaveDialog
SaveDialog like OpenDialog box, but the main difference is that when you want to
save a file you need a new file name that does not exists, not like OpenDialog always
you need an existing file. For this reason you need to select ofOverwritePrompt in Options
which existed in SaveDialg object. If OverwritePrompt is on; save dialog box will
prompt you to replace and existing file if you select already existed one.
Example:
SaveDialog1.Options:= [ofOverwritePrompt];
if SaveDialog1.Execute then
Label1.Caption:= SaveDialog1.FileName
else
Label1.Caption:= 'No file seleceted';
See OpenDialog example.
See also:
OpenDialog