procedure TFrm_Sjcwfp.SpeedButton6Click(Sender: TObject);<br>var<br> i:integer;<br>begin<br> if listbox1.Items.Count>0 then<br> begin<br> for i:=0 to listbox1.Items.Count-1 do<br> if listbox1.Items.Strings=trim(Edt_fpno.Text) then exit;<br> listbox1.Items.Add(trim(Edt_fpno.Text));<br> end<br> else<br> listbox1.Items.Add(trim(Edt_fpno.Text));<br> Edt_fpno.SelectAll;<br> Edt_fpno.SetFocus;<br>end;