Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataModules

Status
Not open for further replies.

bsisko

Programmer
Joined
Oct 9, 2000
Messages
85
Location
US
Hello all,

This is my first time using DataModules with C++ Builder 6.0
I have a TMainMenu, a TDataSource, and a TTable in there.
How do I access these components. I know I have to use the #include "unit.h" file

But, in code do I use the DataModule1->TMainMenu* MainMenu1 or what form of command do I use.
 
Simple:

#include "datamodule_unitname_whatewer.h"

.
.
.
.
//Sumwhere in yer code
MyDataModuleName->MyComponentNameInDataModule->Something...

Have a good time,

unbornchikken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top