Board index » cppbuilder » Compiled fine at work, {*word*88}s at home

Compiled fine at work, {*word*88}s at home

Hello all,

I've got a litte project I'm working on, using BCB5Std at home and work.
Using Win2K at work and Win98 at home.  I compiled and ran my project fine
at work today.  Brought it home and it {*word*88}s on:

void CheckEntries()
{
   Form1->RichEdit1->Clear();
   Form1->ListBox1->Clear();    //{*word*88}s here and gives me the following
error

[C++ Error] Unit1.cpp(60): E2316 'ListBox1' is not a member of 'TForm1'

Any ideas?

Thanks,

Chuck

 

Re:Compiled fine at work, {*word*88}s at home


Sure Enough,

Thanks Edward, much appreciated.

Gotta' go, my brother Forrest is calling me!!

Chuck

Quote
"Edward Diener" <eddie...@tropicsoft.com> wrote in message

news:3C6DD377.3080400@tropicsoft.com...
Quote
> CDC wrote:

> > Hello all,

> > I've got a litte project I'm working on, using BCB5Std at home and work.
> > Using Win2K at work and Win98 at home.  I compiled and ran my project
fine
> > at work today.  Brought it home and it {*word*88}s on:

> > void CheckEntries()
> > {
> >    Form1->RichEdit1->Clear();
> >    Form1->ListBox1->Clear();    //{*word*88}s here and gives me the following
> > error

> > [C++ Error] Unit1.cpp(60): E2316 'ListBox1' is not a member of 'TForm1'

> > Any ideas?

> Sure. You are pointing to another header file, or a different one, or an
> earlier one, than the one you have at work. Check to make sure that the
> header file you have at home for Form1 has a ListBox1 component ?

Re:Compiled fine at work, {*word*88}s at home


Hey Chuck,

You dufus, add this to your header file: TListBox *ListBox1; this makes it a
member.

Thanks anyway,

Chuck

Quote
"CDC" <c...@christianliving.net> wrote in message news:3c6dcd25_1@dnews...
> Hello all,

> I've got a litte project I'm working on, using BCB5Std at home and work.
> Using Win2K at work and Win98 at home.  I compiled and ran my project fine
> at work today.  Brought it home and it {*word*88}s on:

> void CheckEntries()
> {
>    Form1->RichEdit1->Clear();
>    Form1->ListBox1->Clear();    //{*word*88}s here and gives me the following
> error

> [C++ Error] Unit1.cpp(60): E2316 'ListBox1' is not a member of 'TForm1'

> Any ideas?

> Thanks,

> Chuck

Re:Compiled fine at work, {*word*88}s at home


Quote
CDC wrote:
> Hello all,

> I've got a litte project I'm working on, using BCB5Std at home and work.
> Using Win2K at work and Win98 at home.  I compiled and ran my project fine
> at work today.  Brought it home and it {*word*88}s on:

> void CheckEntries()
> {
>    Form1->RichEdit1->Clear();
>    Form1->ListBox1->Clear();    //{*word*88}s here and gives me the following
> error

> [C++ Error] Unit1.cpp(60): E2316 'ListBox1' is not a member of 'TForm1'

> Any ideas?

Sure. You are pointing to another header file, or a different one, or an
earlier one, than the one you have at work. Check to make sure that the
header file you have at home for Form1 has a ListBox1 component ?

Other Threads