Sign in Join
Wiki copytemporary

Revision 2 of 2, by WikiArchive on 11-4-2026. The page as it is now.

Data module

A data module is a database specific kind of pascal unit. Much like a TForm you can drop components on it, as long as they are non-visible.

Typically a data module might contain a TSQLConnector (or a specialized one) and a TSQLTransaction.

A new data module can be created using File|New...

The datamodule above contains three database related items:

SQLScript1 sets its transaction to SQLTransaction1 and its DataBase to SQLConnector1


From the Free Pascal wiki, page "Data module", as it stood on 2016-09-23 after a change by Arent, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.