Recent

Author Topic: using showmodal  (Read 10170 times)

chriswp

  • Newbie
  • Posts: 2
using showmodal
« on: October 10, 2007, 10:42:01 am »
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

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
using showmodal
« Reply #1 on: October 10, 2007, 12:39:26 pm »
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.


 

TinyPortal © 2005-2018