Solved

howto: empty strings in common dialog control ?

Posted on 1998-09-13
2
115 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
Comment Utility
Do this,,,,,
OpenDialog.FileName := '';

Regards,
Viktor Ivanov
0
 

Author Comment

by:mathes
Comment Utility
Thank you for your answer.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now