Delphi Programming
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Top Content
most_popular
most_visited
Delphi 7
Object Pascal
Delphi 6
Creating DLLs
Simple Calculator Tutorial
Delphi 2007 for Win32
Delphi 8
highest_ratings
newly_changed
3rd Party Components
Delphi 7
Good Quality Applications Built With Delphi
Delphi Release Dates
Open Paradox db without password
RTLVersion Constant
Borland Compiler Conditional Defines
Community
top_users
Community portal
forum
Recent blog posts
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Delphi Programming
2,929
pages
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Top Content
most_popular
most_visited
Delphi 7
Object Pascal
Delphi 6
Creating DLLs
Simple Calculator Tutorial
Delphi 2007 for Win32
Delphi 8
highest_ratings
newly_changed
3rd Party Components
Delphi 7
Good Quality Applications Built With Delphi
Delphi Release Dates
Open Paradox db without password
RTLVersion Constant
Borland Compiler Conditional Defines
Community
top_users
Community portal
forum
Recent blog posts
Editing
Data module
Back to page
Edit
Edit source
View history
Talk (0)
Edit Page
Data module
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
[[File:Data-module-2.png|frame|Sample data module]]DataModule - module for non-visual VCL components, mostly location for data access components and relevant code. Generally, a TDataModule is similar to a TForm. Developer can place and manipulate components, but only non-visual. Mostly is used for the following purposes: *'''Centralized data manipulation''' : Centralized handling of data access components, like: database connection (TSQLConnection, TADOCOnnection, TIBDatabase, etc.) or data sets (TSQLDataset, TADODataset, β¦). Centralized data module is convenient especially when an application has multiple forms that share the same data or the same connection. Data module can be used for centralized validation for data business rules. Preventing invalid data begin entered into a database. *'''Centralized actions and application code''' : Data module can hold sets of actions inside relevant container (like TActionManager) or other bussines actions and rules. Also TDataModule class can contain shared methods, fields and properties used in many other modules. Data modules make code maintenance easier. *'''Web module''' : A TWebModule is descendant of TDataMoule and is used for designing web application.
Summary:
Please note that all contributions to the Delphi Programming are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab