L lah998 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #1 真是气人,搞了半天不知道如何判断listBox里有无内容.
寻 寻路 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #3 if listbox1.Items.Count =0 then messagebox(handle,'ListBox没有内容!','Test',0);
老 老人家 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #10 var i: Integer; bb: Boolean; begin with Listbox1 do begin for i := 0 to Items.Count - 1 do begin if Items <> '' then bb := True; exit; end; end; bb := False; end;
var i: Integer; bb: Boolean; begin with Listbox1 do begin for i := 0 to Items.Count - 1 do begin if Items <> '' then bb := True; exit; end; end; bb := False; end;
L lah998 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #11 老人家,: http://www.delphibbs.com/delphibbs/dispq.asp?lid=1498430
L lah998 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #12 老人家,:按理1分都不加给你了,看在你答对了还是加给你算了!
L lah998 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-10 #13 纠正ListBox1.Items.Count = 0是正确的