J
jugcx
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender:TObject); <br>var <br> i:integer; <br>begin <br> for i:=0 to listbox2.Count-1 do <br> begin <br> if listbox2.Selected then <br> adoquery2.SQL.Text:='select guanj from guanjz where ganj=:listbox2.items'; <br> adoquery2.Open; <br> while not adoquery2.eof do <br> begin <br> LB3.Items.Add(adoquery2.FieldValues['guanj']); <br> adoquery2.Next; <br> end; <br> end; <br>end; <br>请问我这样写什么地方错了呢?