L liujing2 Unregistered / Unconfirmed GUEST, unregistred user! 1999-06-17 #1 我利用如下语句: listview1.items.add('你好'); 编译不能通过,提示参数过多。是何原因?
W wgzhang Unregistered / Unconfirmed GUEST, unregistred user! 1999-06-17 #2 TListItem is an individual item of a TListView control procedure TForm1.Button1Click(Sender: TObject); var ListItem: TListItem; NewColumn: TListColumn; begin with ListView1 do begin ViewStyle := vsReport; ListItem := Items.Add; ListItem.Caption := '你好'; ListItem := Items.Add; ListItem.Caption := 'asd'; NewColumn := Columns.add; NewColumn.Caption := 'Column 1'; end; end; 运行一下就知道了.
TListItem is an individual item of a TListView control procedure TForm1.Button1Click(Sender: TObject); var ListItem: TListItem; NewColumn: TListColumn; begin with ListView1 do begin ViewStyle := vsReport; ListItem := Items.Add; ListItem.Caption := '你好'; ListItem := Items.Add; ListItem.Caption := 'asd'; NewColumn := Columns.add; NewColumn.Caption := 'Column 1'; end; end; 运行一下就知道了.
茶 茶叶蛋 Unregistered / Unconfirmed GUEST, unregistred user! 1999-06-17 #3 这样就行了: tempItem : TListItem; tempItem := ListView.Items.Add; tempItem.Caption := tempString; ......
R RedCat Unregistered / Unconfirmed GUEST, unregistred user! 1999-06-17 #5 listview,treeview 中的Item添加方法都和 listbox,memo,richedit等类memo控件不一样, 后者是以字符串列表为基础
W Wysywyg Unregistered / Unconfirmed GUEST, unregistred user! 1999-07-18 #7 想知道一个过程有几个参数,只要在名称后加(,再看HINT就行了, 何必等到编译呢?
N nuke Unregistered / Unconfirmed GUEST, unregistred user! 1999-07-18 #8 干嘛呀!应该这样哦 listview1.items.add.caption:='你好'; 嘿嘿! 不就行了??
3 3h Unregistered / Unconfirmed GUEST, unregistred user! 1999-09-06 #9 nuke的方法倒是直接,不过作用不大,只能一次性使用,象某些产品。:)