Fix issue #1130: Stored routine lost if no name is given

This commit is contained in:
Ansgar Becker
2009-05-16 06:05:20 +00:00
parent ea71eb13f9
commit d35b2dbf0f

View File

@@ -415,10 +415,12 @@ begin
if editName.Text = '' then begin
MessageDlg('Please specify the routine''s name.', mtError, [mbOK], 0);
editName.SetFocus;
ModalResult := mrNone;
Exit;
end else if (ProcOrFunc = 'FUNCTION') and (comboReturns.Text = '') then begin
MessageDlg('Please specify the function''s returning datatype.', mtError, [mbOK], 0);
comboReturns.SetFocus;
ModalResult := mrNone;
Exit;
end;