?
Solved

How to get more filenames from FileListBox1 to Edit1 ?

Posted on 1997-12-10
2
Medium Priority
?
471 Views
Last Modified: 2008-03-06
I want to make an program, that selects some files in a FileListBox1 and give the output to an Edit1. The problem is  if I select more than 1 file, the Edit1 displays only one filename. How do I get the other ones, Without selecting all the files one at a time, must I put the whole FileListBox1 into a string ?
0
Comment
Question by:CyberChild
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 210 total points
ID: 1353273
You have to write a for loop to go through the list of files:
for i := 0 to FileListBox.Items.Count - 1 do
  if (FileListBox.Selected[i]) then
    Edit1.Text := Edit1.Text + ' ' + FileListBox.Items[i];

JB
0
 

Author Comment

by:CyberChild
ID: 1353274
Thanks.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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