Solved

howto: empty strings in common dialog control ?

Posted on 1998-09-13
2
117 Views
Last Modified: 2010-04-06
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
Comment
Question by:mathes
2 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
ID: 1339615
Do this,,,,,
OpenDialog.FileName := '';

Regards,
Viktor Ivanov
0
 

Author Comment

by:mathes
ID: 1339616
Thank you for your answer.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question