Var
S: String;
i: integer;
begin
S:='';
For i:= 0 to ListView1.Items.Count -1 do
if ListView1.items[i].Selected then
S:=S+ListView1.items[i].Caption;
Showmessage(S);
end;
S: String;
i: integer;
begin
S:='';
For i:= 0 to ListView1.Items.Count -1 do
if ListView1.items[i].Selected then
S:=S+ListView1.items[i].Caption;
Showmessage(S);
end;
解决方案 »
- 高分回报:如何用ADO实现两个SQLserver数据库(或MDB->SQLSERVER)单向数据传输,拜托各位能讲讲。
- 怎样关闭计算机,为什么我用ExitWindowsEx(EWX_SHUTDOWN,0)不行,系统是2000P
- 请问如何根据计算机名或IP地址确定局域网中的某台计算机在线
- 今天遇一怪事
- 救命:fr2.5 导出excel文件后该excel文件不可以打开,而且再也不可显示报表了!
- 在设置TABIE控件的TABLENAME属性是总是弹出要求输入USERNAME和PASSWORD的对话框,这是为什么?
- 关闭子窗体问题
- 在TSQL中使用类似函数的问题?
- const H: THandle = 0; 既然定义为常量,为什么后来又在某个函数中被赋值?
- ?请问,要将字符串(包括中文和字母)转成asc码,再转回来用什么方法啊?
- 如何用语句在Tchart中动态加入Serie
- 可以通过SQL 语名将查询结果以文本文件形式输出吗?
S: String;
i: integer;
begin
S:='';
For i:= 0 to ListView1.Items.Count -1 do
if ListView1.items[i].Selected then
S:=S+ListView1.items[i].Caption;
Showmessage(S);
end;
S: String;
i: integer;
begin
S:='';
For i:= 0 to ListView1.Items.Count -1 do
if ListView1.items[i].Selected then
S:=S+ListView1.items[i].Caption;
Showmessage(S);
end;
i: integer;
begin
For i:= 0 to ListView1.Items.Count -1 do
if ListView1.items[i].Selected then
showmessage(ListView1.items[i].Caption);
end;
Item: TListItem;
begin
Item := ListView1.Selected;
while Item <> nil do
begin
ListBox1.Items.Add(Item.Caption);
Item := ListView1.GetNextItem(Item, sdAll, [isSelected]);
end;
end;