Re: [Lazarus] TDataModule for non-database non-visual components

2017-02-07 Thread Kostas Michalopoulos via Lazarus
Great. But maybe that should be made clear in the docs like Embarcadero's docs mention? Because both the wiki and the name imply a database orientation. On Tue, Feb 7, 2017 at 12:15 AM, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Mon, 6 Feb 2017 21:17:48 +0200 > Kos

Re: [Lazarus] TDataModule for non-database non-visual components

2017-02-06 Thread Mattias Gaertner via Lazarus
On Mon, 6 Feb 2017 21:17:48 +0200 Kostas Michalopoulos via Lazarus wrote: > Hi all, > > A simple question, is it ok to use a TDataModule for non-visual components > that can be shared among forms (and generally contain app-wide stuff)? Yes. That's their purpose. >[...] Mattias -- __

[Lazarus] TDataModule for non-database non-visual components

2017-02-06 Thread Kostas Michalopoulos via Lazarus
Hi all, A simple question, is it ok to use a TDataModule for non-visual components that can be shared among forms (and generally contain app-wide stuff)? There doesn't seem to be a plain TModule or something like that. I ask because the docs do not make the distinction clear (the name doesn't help