I have a form named AboutBox.
I have another form (my main form) named Form_Main.
I would like to use the ShowModal function to open my aboutbox when they click on the drop down menu.
This is the code I was using:
procedure TForm_Main.MenuItem_AboutClick(Sender: TObject);
begin
AboutBox.ShowModal;
end;
I get the error message: "Error 3-Invalid Identifier"
WHY???
I have another form (my main form) named Form_Main.
I would like to use the ShowModal function to open my aboutbox when they click on the drop down menu.
This is the code I was using:
procedure TForm_Main.MenuItem_AboutClick(Sender: TObject);
begin
AboutBox.ShowModal;
end;
I get the error message: "Error 3-Invalid Identifier"
WHY???