Board index » delphi » Open Dialog/Close Dialog question

Open Dialog/Close Dialog question

I posted this question last week, but it seems to have disappeared.

How can I use the filename the user picks in Open Dialog and use it as the
default filename in the Save Dialog?

SaveDialog1.FileName:= OpenDialog1.FileName;    doesn't seem to work.

 

Re:Open Dialog/Close Dialog question


Quote
"George Kwascha" <kas...@mindspring.com> wrote in message

news:3990a15b$1_2@dnews...
Quote
> I posted this question last week, but it seems to have disappeared.

> How can I use the filename the user picks in Open Dialog and use it as the
> default filename in the Save Dialog?

> SaveDialog1.FileName:= OpenDialog1.FileName;    doesn't seem to work.

It works fine for me. Show a little more code from using the Open Dialog
until using the Save Dialog....

Woody

Re:Open Dialog/Close Dialog question


Quote
In article <3990a15b$1_2@dnews>, George Kwascha wrote:
> SaveDialog1.FileName:= OpenDialog1.FileName;    doesn't seem to work.

It should. Show us a small code extract and tell us what actually happens.

 Mike Orriss (TeamB & Developer Express)
 (Unless stated otherwise, my replies relate to Delphi 5)
 (No unsolicited e-mail replies please)

Re:Open Dialog/Close Dialog question


"George Kwascha" <kas...@mindspring.com> skrev i en meddelelse
news:3990a15b$1_2@dnews...

Quote
> I posted this question last week, but it seems to have disappeared.
> How can I use the filename the user picks in Open Dialog and use it as the
> default filename in the Save Dialog?
> SaveDialog1.FileName:= OpenDialog1.FileName;    doesn't seem to work.

I remember that.
Your problem is that you are doing it in the SaveDialog's OnShow event and
that doesn't work.
If you set the FileName *before* calling SaveDialog.Execute then it works.

Finn Tolderlund

Other Threads