Recent

Author Topic: Adding another form to form1  (Read 2988 times)

james

  • New Member
  • *
  • Posts: 13
Adding another form to form1
« on: February 03, 2011, 04:06:05 am »
After numerous installs/uninstalls and registry/files cleaning, I still have the same problem.  It is driving me nuts.

I'm using Lazarus 0.9.28.2 beta on a Windows XP Pro SP3 machine.

When I add a second, or any other form to the first, save it and then build, all appears well.

If I add a button , use Form2.ShowModal for an onclick event and save, then build, I get the following error:
Error: Identifier not found: "form2"

The correct unit is present in the .lpr

Any ideas?  This hasn't worked since the first install, which I had to remove for other reasons. ::)



Yes, thank you - already done.  I guess I have been spoiled by Delphi....

« Last Edit: February 03, 2011, 07:39:33 pm by james »

march

  • New Member
  • *
  • Posts: 17
Re: Adding another form to form1
« Reply #1 on: February 03, 2011, 05:27:21 am »
Have you added the unit name of Form2 to the "uses" statement of Form1 ?