Solved

How to get more filenames from FileListBox1 to Edit1 ?

Posted on 1997-12-10
2
464 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

19 Experts available now in Live!

Get 1:1 Help Now