Solved

Getting a Foldername

Posted on 1998-10-21
2
153 Views
Last Modified: 2010-04-06
I want to get the name of the last folder I selected in my DirectoryListBox. I don´t want to get the full path.

 

0
Comment
Question by:yngvi
2 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 50 total points
ID: 1343602
LastFolderName:=DirectoryListBox.Items[DirectoryListBox.ItemIndex]
0
 

Expert Comment

by:sal1150
ID: 13119934
aha

i find the answer

procedure TForm1.ListBox1Click(Sender: TObject);
begin
Label2.Caption :=AppDir+'\'+ListBox1.Items[ListBox1.ItemIndex];
end;
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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