Solved

howto: empty strings in common dialog control ?

Posted on 1998-09-13
2
121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month3 days, 11 hours left to enroll

630 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