H
H
Hecntv2018-04-06 19:00:19
Delphi
Hecntv, 2018-04-06 19:00:19

How to rename popup form name?

Here is the screenshot

spoiler
5ac7989625646225785204.jpeg
, I do it simply:
procedure TFormBaza1.BitBtn1Click(Sender: TObject);
begin
if ...then
begin
...
end
else
begin
...
ShowMessage('Record not found!');
end;
end;
end.
Simply, I thought to change it to something like Warning) or Error!, which would bypass the creation of a new form to display this message.
Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Palych, 2018-04-06
@Yelo

Application.MessageBox('Запись не найдена!', 'Ошибка!', MB_OK + MB_ICONSTOP);

or
MessageDlg('Запись не найдена!',  mtError, [mbOK], 0);

K
kalapanga, 2018-04-06
@kalapanga

Use the MessageDlg function. It has a title, an icon, and the necessary buttons

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question