Forum > Database

SQLite3 + FPC. native!

<< < (3/3)

TRon:

--- Quote from: Seenkao on June 27, 2024, 04:45:37 pm ---TRon, Thank you!

--- End quote ---
You are most welcome.

The part that is important to understand from that is is that you can use about any non visual component that way (provided the components does not have any GUI related dependencies)


--- Quote ---This is quite a detailed example!

--- End quote ---
I used it as an example for someone else on this forum so I am sorry for any possible additional noise in the code that doesn't really belong there (just try to ignore that).

You can use almost any example from the wiki to accomplish the same task without using a GUI (with the exception of visual components like f.e. a dbedit or dbgrid etc).

I prefer to setup my databases manually (even those with a GUI) to make it clear to the reader of the code what is done to initialize the database components. Using the object inspector to set the database properties and attaching events is usually not the most brightest idea and doing it this way allows to initialize the database components at any given time in your code (e.g. only when necessary though you can achieve similar results with using datamodules for/with GUI applications).

@cdbc:
Nice ! I use something similar when developing (smaller) projects that require database access.

Thaddy:
I still hope the newspaper boy will release his translation as open source.

Navigation

[0] Message Index

[*] Previous page

Go to full version