Solved

How i set OpenDialog component just to open *.MDB files?

Posted on 2004-08-11
5
229 Views
Last Modified: 2010-04-05
Hi folks,

I´d like that, when i call my 'FileName' property of my 'OpenDialog1' component, just *.MDB files appears in the dialog (not all kind of files).

Do you know how i do that?

Thx. very much!
0
Comment
Question by:MinimeBoy
[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
  • 3
5 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 25 total points
ID: 11780471
Set the Filter property to:  *.MDB

If you click on the ellipsis in the object inspector, a property editor will open up, you can fill in the name, then the filter as *.mdb

Tada!
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 11780475
Or, you can do it manually, say in a FormCreate method:

OpenDialog1.Filter:='MDB Files|*.mdb';

Enjoy!
0
 

Author Comment

by:MinimeBoy
ID: 11780668
Thank you very much.
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 11782704
Hi!

Was there something wrong with my answer, that you felt it only deserved a "C"? I thought it was quick and accurate, and addressed the problem directly.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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