Why is Tabsheet1 error in parent form ?


2005-08-04 03:21:16 AM
cppbuilder45
Hi all,
When I click RUN (F9), I have
[C++ Error] Unit1.cpp(428): E2451 Undefined symbol 'TabSheet1'
How can I turn TabSheet1 or TabSheet2 from parent form.
Thanks.
Dragon Blair
my code in parent form as follow:
.....
TChild* child = dynamic_cast<TChild*>(ActiveMDIChild);
if (!child) return;
switch (ModeVar)
{
case 0: //CW
child->PageControl1->ActivePage = TabSheet1;
child->Edit1->Text ="1 good";
break;
case 1:
child->PageControl1->ActivePage = TabSheet2;
child->Edit1->Text ="2 good";
break;
}
.....