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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using datamodules

Status
Not open for further replies.

domkop

Programmer
Aug 19, 2003
22
NL
i am working with a paradoxdatabase.
now someone sugested to use datamodules to keep all the datasources and tables on one place.
now i want to try to use this but how do i change the objects on a datamodule on runtime.
some tables have filtering or indexes that need to change when changing the working form, orcan i use datamodules only if the data does not change.
i use different forms that use the same database
does anyone knows a site for this??
i never used datamodules before, i always placed the objects on the forms i am working with.
 
You just need to refer to the datamodule in the implementation section of the unit:

implementation
Uses Datamodule1,Unit1;

The data module is ideal for sharing a data connection, imagelist, actionlist/menus or any other non-visual components across forms. Changing data at runtime is no different in a data module than if you place the table/query/etc... on the form.

Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top