Solved

How to get more filenames from FileListBox1 to Edit1 ?

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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