if edit2.Text<>edit3.Text then<br> begin<br> showmessage('两次输入的密码不一至!');<br> edit2.Clear;<br> edit3.Clear;<br> exit;<br> end;<br> if edit2.Text='' then<br> begin<br> showmessage('密码不能为空!');<br><br> exit;<br> if edit1.Text='' then<br> begin<br> showmessage('用户名不能为空!');<br><br> exit;<br><br> end<br> else<br>adotable1.close;<br>adotable1.tablename:='user-inf';<br>adotable1.Open;<br> adotable1.Append;<br> adotable1.Fields[1].AsString:=edit1.text;<br> adotable1.Fields[2].AsString:=edit2.text;<br> adotable1.post;<br> adotable1.close;<br>showmessage('用户添加成功!');<br><br><br>不好意思,呵呵,忘记了,