Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 123
  • Last Modified:

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
0
mathes
Asked:
mathes
1 Solution
 
viktornetCommented:
Do this,,,,,
OpenDialog.FileName := '';

Regards,
Viktor Ivanov
0
 
mathesAuthor Commented:
Thank you for your answer.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now