首先用OpenDialog多选选择多个文本文件到
Listbox1中,问题就是这里,选择一项之后就自然将这一项的内容读取到Listbox2中,怎么解决??
感谢大家了。
Listbox1中,问题就是这里,选择一项之后就自然将这一项的内容读取到Listbox2中,怎么解决??
感谢大家了。
解决方案 »
- Undeclared identifier: 'TBytes'
- Delphi高手请进,DSPack2.34带来的问题。100分求解,不够再加,只求问题解决。
- ReadProcessMemory读入buffer问题
- DBGridE控件是属于哪一个包,哪里可以下载
- -----根据用到的方法和属性,你认为是什么控件呢?----
- FastReport 4.0 打印显示问题
- 关于捕捉用户按键的问题
- 多次调用ReadBuffer,出现 stream read error,该如何解决???
- 如何通过变量来传递label的name,并让函数来对该label进行操作?
- delphi怎么编写串口程序〉? 答对送分!20分
- 一个关于d6中打开form窗口的问题
- Listbox所选择文件读取
procedure TForm1.ListBox1Click(Sender: TObject);
var
i:integer;
begin
for i:=0 to ListBox1.Items.Count-1 do
begin
if Listbox1.Selected[i] then
listbox2.Items.Add(Listbox1.Items[i]);
end;
end;
begin
if OpenDialog1.Execute then
listbox1.Items:=OpenDialog1.Files;
end;
if OpenDialog1.Execute then
begin
ListBox3.Items.LoadFromFile(OpenDialog1.FileName);
ListBox1.Items.AddStrings(ListBox3.Items);
end;