H huxhang Unregistered / Unconfirmed GUEST, unregistred user! 2007-09-04 #1 如何判断listbox1的items中有无值:aaa 和 ddd ? 或者:如何判断:ADOConnection1里有没有指定的表:aaa 和 ddd ?
X xgwzw Unregistered / Unconfirmed GUEST, unregistred user! 2007-09-04 #2 ADOConnection1.gettable();好像是这样写把,自己看一下 先得到列表,再查找
H huxhang Unregistered / Unconfirmed GUEST, unregistred user! 2007-09-04 #3 var i:integer; st:string; begin ADOConnection1.GetTableNames(ListBox1.Items); for I := 0 to ListBox1.Count- 1 do begin st:= ListBox1.itemindex ; if st<>'0304sc' then edit1.Text:='无'; end; end;
var i:integer; st:string; begin ADOConnection1.GetTableNames(ListBox1.Items); for I := 0 to ListBox1.Count- 1 do begin st:= ListBox1.itemindex ; if st<>'0304sc' then edit1.Text:='无'; end; end;