using showmodal lazarus / 10-Designer ---------------------------------------------------------------------- chriswp · 2007-10-10 08:42 Hi I'm using two forms - form1 and form2. I want to show form2 from a menu option on form1. The code I used = form2.showmodal; everytime I am running the program it gives an undeclared Identifier error. The form I am calling is in fact form2. What am I doing wrong. Chris ---------------------------------------------------------------------- Leledumbo · 2007-10-10 10:39 You said you were 'running', but I guess you were still 'compiling' since the error is undeclared identifier, which is a compile error. Did you add unit2 to unit1's uses clause? If you didn't, how can unit1 know that form2 exists since it's declared in another unit? So, add it first and try recompile (build) it again. If it still doesn't work, ask again, but please post your code here. ---------------------------------------------------------------------- ssamayoa · 2007-10-10 16:34 Perhaps this helps: http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtop ic&t=4372 http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtop ic&t=4390 Regards.