出错提示 capability not supported 错在哪啊??? 原代码
出错提示 capability not supported
错在哪啊???
begin
with query do
begin
Close;
SQL.Clear;
SQL.Add('select * from login where user ='''+trim(name_edit.text)+'''');
Open;
if RecordCount < 1 then
begin
Application.MessageBox('提示:用户名不存在,请重新输入','提示',mb_ok + mb_iconinformation);//Pchar
name_edit.Clear;
pass_edit.Clear;
name_edit.SetFocus();
Exit;
end;
if Locate('password',Trim(Pass_edit.Text),[]) then
begin
Visible := False;
form2.showModal;
//主窗体打开并提示登录成功;
end
else
begin
Application.MessageBox('提示:密码不正确,请重新输入','提示',MB_OK + MB_Iconinformation);
pass_edit.Clear;
pass_edit.SetFocus;
exit;
end;
end
end;