CanContinue := False;
if edCaptionUK.Text <> '' then
begin
if edCaptionRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCaptionRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edCaptionRU.SetFocus;
Exit;
end;
if edCaptionEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCaptionEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edCaptionEN.SetFocus;
Exit;
end;
end;
if edCaptionRU.Text <> '' then
begin
if edCaptionUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCaptionUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edCaptionUK.SetFocus;
Exit;
end;
if edCaptionEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCaptionEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edCaptionEN.SetFocus;
Exit;
end;
end;
if edCaptionEN.Text <> '' then
begin
if edCaptionUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCaptionUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edCaptionUK.SetFocus;
Exit;
end;
if edCaptionRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCaptionRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edCaptionRU.SetFocus;
Exit;
end;
end;
//=============================================== Caption
//=============================================== Author
if edAuthorUK.Text <> '' then
begin
if edAuthorRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAuthorRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edAuthorRU.SetFocus;
Exit;
end;
if edAuthorEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAuthorEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edAuthorEN.SetFocus;
Exit;
end;
end;
if edAuthorRU.Text <> '' then
begin
if edAuthorUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAuthorUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edAuthorUK.SetFocus;
Exit;
end;
if edAuthorEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAuthorEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edAuthorEN.SetFocus;
Exit;
end;
end;
if edAuthorEN.Text <> '' then
begin
if edAuthorUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAuthorUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edAuthorUK.SetFocus;
Exit;
end;
if edAuthorRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAuthorRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edAuthorRU.SetFocus;
Exit;
end;
end;
//=============================================== Author
//=============================================== Place
if edPlaceUK.Text <> '' then
begin
if edPlaceRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edPlaceRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edPlaceRU.SetFocus;
Exit;
end;
if edPlaceEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edPlaceEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edPlaceEN.SetFocus;
Exit;
end;
end;
if edPlaceRU.Text <> '' then
begin
if edPlaceUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edPlaceUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edPlaceUK.SetFocus;
Exit;
end;
if edPlaceEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edPlaceEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edPlaceEN.SetFocus;
Exit;
end;
end;
if edPlaceEN.Text <> '' then
begin
if edPlaceUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edPlaceUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edPlaceUK.SetFocus;
Exit;
end;
if edPlaceRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edPlaceRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edPlaceRU.SetFocus;
Exit;
end;
end;
//=============================================== Place
//=============================================== Copyright
if edCopyrightUK.Text <> '' then
begin
if edCopyrightRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCopyrightRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edCopyrightRU.SetFocus;
Exit;
end;
if edCopyrightEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCopyrightEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edCopyrightEN.SetFocus;
Exit;
end;
end;
if edCopyrightRU.Text <> '' then
begin
if edCopyrightUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCopyrightUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edCopyrightUK.SetFocus;
Exit;
end;
if edCopyrightEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCopyrightEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edCopyrightEN.SetFocus;
Exit;
end;
end;
if edCopyrightEN.Text <> '' then
begin
if edCopyrightUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCopyrightUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edCopyrightUK.SetFocus;
Exit;
end;
if edCopyrightRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edCopyrightRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edCopyrightRU.SetFocus;
Exit;
end;
end;
//=============================================== Copyright
//=============================================== AltText
if edAlttextUK.Text <> '' then
begin
if edAlttextRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAlttextRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edAlttextRU.SetFocus;
Exit;
end;
if edAlttextEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAlttextEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edAlttextEN.SetFocus;
Exit;
end;
end;
if edAlttextRU.Text <> '' then
begin
if edAlttextUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAlttextUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edAlttextUK.SetFocus;
Exit;
end;
if edAlttextEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAlttextEN.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
edAlttextEN.SetFocus;
Exit;
end;
end;
if edAlttextEN.Text <> '' then
begin
if edAlttextUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAlttextUK.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
edAlttextUK.SetFocus;
Exit;
end;
if edAlttextRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + edAlttextRU.LabelCaption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
edAlttextRU.SetFocus;
Exit;
end;
end;
//=============================================== AltText
//=============================================== Text
if mTextUK.Text <> '' then
begin
if mTextRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + Label2.Caption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
mTextRU.SetFocus;
Exit;
end;
if mTextEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + Label3.Caption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
mTextEN.SetFocus;
Exit;
end;
end;
if mTextRU.Text <> '' then
begin
if mTextUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + Label1.Caption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
mTextUK.SetFocus;
Exit;
end;
if mTextEN.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + Label3.Caption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 2;
mTextEN.SetFocus;
Exit;
end;
end;
if mTextEN.Text <> '' then
begin
if mTextUK.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + Label1.Caption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 0;
mTextUK.SetFocus;
Exit;
end;
if mTextRU.Text = '' then
begin
MessageBox(Handle, PChar('Ïîëå "' + Label2.Caption + '" ïîâèííî ìàòè çíà÷åííÿ!'),
PChar(Application.Title), MB_OK or MB_ICONWARNING);
PageControl1.ActivePageIndex := 1;
mTextRU.SetFocus;
Exit;
end;
end;
//=============================================== Text
CanContinue := True;
и это все одна функция... Мозгами тронуться !!!
- Простите, профессор, не пса, а когда он уже был человеком.
— То-есть он говорил? Это еще не значит быть человеком. (с) Булгаков
- Простите, профессор, не пса, а когда он уже был человеком.
— То-есть он говорил? Это еще не значит быть человеком. (с) Булгаков
- Простите, профессор, не пса, а когда он уже был человеком.
— То-есть он говорил? Это еще не значит быть человеком. (с) Булгаков