Solved

How to get more filenames from FileListBox1 to Edit1 ?

Posted on 1997-12-10
2
465 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
2 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 70 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

929 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now