• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

Getting a Foldername

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
yngvi
Asked:
yngvi
1 Solution
 
dwwangCommented:
LastFolderName:=DirectoryListBox.Items[DirectoryListBox.ItemIndex]
0
 
sal1150Commented:
aha

i find the answer

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now