Solved

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

Posted on 2004-08-11
5
221 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
  • 3
5 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 25 total points
Comment Utility
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
Comment Utility
Or, you can do it manually, say in a FormCreate method:

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

Enjoy!
0
 

Author Comment

by:MinimeBoy
Comment Utility
Thank you very much.
0
 
LVL 7

Expert Comment

by:LRHGuy
Comment Utility
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

IT, Stop Being Called Into Every Meeting

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

13 Experts available now in Live!

Get 1:1 Help Now