OpenDialog component in Delphi

Posted on 2000-02-04
Medium Priority
Last Modified: 2012-08-14

when i use opendialog comp in Delphi i choose a file and get its filename in "filename" property. But i don't want all the string e.g

"c:\folder/filename.exe" i just want my filename "filename.exe" without all c:\............./............
Question by:lulli
  • 2
LVL 27

Accepted Solution

kretzschmar earned 40 total points
ID: 2489660
hi lulli


myFileName := ExtractFilename(Opendialog1.FileName);


Expert Comment

ID: 2489679
Kretz, Are you refreshing the main delphi screen every 5 seconds, i only hust noticed this question appear? have you got an auto refresh going every 5 seconds? how are you so fast???
LVL 27

Expert Comment

ID: 2489714
hi craig,

thats really just coincidence, because i look only every ~hour in ex-ex for new q's. there is no magic.

>have you got an auto refresh going every 5 seconds?
would be nice

meikl ;-)


Author Comment

ID: 2489879

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month6 days, 10 hours left to enroll

594 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