howto: empty strings in common dialog control ?

Hi experts,

I want that the common dialog control contains an empty
string, instead of a file name.

In Visual Basic I would do it like this:

CommonDialog1.filename = ""


In Delphi 3.0,  I tried

OpenDialog1.Files:=' ';

and I tried

Opendialog1.clear;

but both these statements are rejected by Delphi with
an error message.

Any suggestions for a correct solution ?

With kind regards

Christian
mathesAsked:
Who is Participating?
 
viktornetConnect With a Mentor Commented:
Do this,,,,,
OpenDialog.FileName := '';

Regards,
Viktor Ivanov
0
 
mathesAuthor Commented:
Thank you for your answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.