[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Getting a Foldername

Posted on 1998-10-21
2
Medium Priority
?
158 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 200 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month17 days, 20 hours left to enroll

831 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