增加
with listview1.items.add do
begin
caption:='1212';
subitems.add('hh1');
subitems.add('hh2');
end;删除
listview1.items.delete(0);
with listview1.items.add do
begin
caption:='1212';
subitems.add('hh1');
subitems.add('hh2');
end;删除
listview1.items.delete(0);
解决方案 »
- 有没有办法禁止用户更改IP?
- 如何做一个橡皮擦的功能??
- windows服务的相关问题
- 大虾,救小弟一命!打印对齐?????
- DELPHI6不好用,经常打不开单元文件
- 打开我的电脑或文件夹,会启动超级解霸,如何改呀,急!!!!
- cobi(我是小新,我只有五岁):你好!还在不在?
- 请问如何捕捉到系统关机各重启???
- 谁能说说findwindow这个api怎么用?
- 都可能遇到的常见难题,若您知道,敬请告诉我,您不知道,近来看看高手怎么说...
- 高分求问InstallShield7.02注册码!
- 在2000系统环境下,GetMoudleHandle('abc.dll')函数能否写在COM+对象的OnActivate事件里
ListView1.Items.Clear;
with adoquery1 do
begin
close;
sql.Clear;
sql.Add('select spmc,jg,sl from kcxs');
Open;
ListView1.Items.Clear;
while not eof do
begin
tmp_item:=ListView1.Items.add;
tmp_item.Caption:=FieldByName('spmc').Value;
Tmp_item.SubItems.Add(FieldByName('sl').Value);
Tmp_item.SubItems.Add(FieldByName('jg').Value);
next;
end;
end;
//删除
ListView1.DeleteSelected
我现在要交任务,没时间了
ListBox1.Items.Add('abc' + IntToStr(I));procedure TForm1.Button1Click(Sender: TObject);
var
a:integer;
begin
a:=ListBox1.ItemIndex;
ListBox2.Items.add(ListBox1.Items.Strings [a]);
listbox1.Items.Delete(a);
end;procedure TForm1.Button3Click(Sender: TObject);
var
b:integer;
begin
b:=ListBox2.ItemIndex;
ListBox1.Items.add(ListBox2.Items.Strings [b]);
listbox2.Items.Delete(b);
end;
ListBox1.Items.Add('abc' + IntToStr(I));
procedure TForm1.Button1Click(Sender: TObject);
var
a:integer;
begin
a:=ListBox1.ItemIndex;
ListBox2.Items.add(ListBox1.Items.Strings [a]);
listbox1.Items.Delete(a);
end;procedure TForm1.Button3Click(Sender: TObject);
var
b:integer;
begin
b:=ListBox2.ItemIndex;
ListBox1.Items.add(ListBox2.Items.Strings [b]);
listbox2.Items.Delete(b);
end;