procedure TForm1.SpeedButton10Click(Sender: TObject); var iOk:boolean; Str:string; begin Str:='默认'; iOk:=InputQuery('Input Box', 'Prompt', str); if iOk then //确定 if str= '默认' then begin showmessage(' 已经注销'); exit; end else showmessage(' 新的帐号就提示成功');end;
var
iOk:boolean;
Str:string;
begin
Str:='默认';
iOk:=InputQuery('Input Box', 'Prompt', str);
if iOk then //确定
if str= '默认' then
begin
showmessage(' 已经注销');
exit;
end
else
showmessage(' 新的帐号就提示成功');end;