Why this code is not working:
procedure TFormNotification.Button3Click(Sender: TObject);
begin
FormB.Show;
end;
I’m getting Undeclared identifier error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You probably have a global variable named
FormBdeclared in theinterfacesection of a unit namedUnitB. ButUnitAdoesn’t know anything about that unit or its contents. In particular, it doesn’t know what the wordFormBmeans — that identifier is undeclared.To tell
UnitAabout the things declared inUnitB, addUnitBto the uses clause inUnitA: