Get a Bold program running in a few minutes, then choose how to continue.
In Delphi, install the design-time package with a package manager:
- TMS Smart Setup:
tms install bero.boldfordelphi - DPM, per project:
dpm install bero.BoldForDelphi <yourproject>.dproj
The manual route, and the Lazarus packages, are in Installation. Either way, clone the repository too, for the examples:
git clone https://github.com/bero/BoldForDelphi.gitPick the one for your toolchain. Each uses SQLite or an XML file, so no database server is needed.
=== "Delphi, VCL"
Open `examples\Simple\ObjectSpace\MasterDetail\MasterDetail.dproj` and press **F9**. The form offers to create
the database on the first run. Projects are at the top and the tasks of the selected project below them: the
detail grid follows the master with no code. `MasterDetail.ini` selects the database; see
[Database configuration](examples/index.md#database-configuration).
=== "Delphi, FireMonkey"
Open `examples\Simple\ObjectSpace\MasterDetail\FMX\MasterDetailFMX.dproj` and run it, for Win64 or for Linux64
with FmxLinux. It is the same demo, bound through `TBoldDataSet` and LiveBindings.
=== "Lazarus"
Open `examples\Compound\Invoicing\LCL\InvoicingLCL.lpi` in Lazarus 4 and run it with
**Run → Run without Debugging**. It shows customers, their invoices and the invoice lines in three grids over
`TBoldDataSet`, and stores the data in an XML file. Its
[README](https://github.com/bero/BoldForDelphi/tree/develop/examples/Compound/Invoicing/LCL) explains the
exceptions you see on the first run in the debugger.
- The model (classes, attributes, associations) is in a
TBoldModelcomponent; these examples load it from a.bldfile. - The object space (
TBoldSystemHandle) holds the objects. It fetches them from the database when they are first needed and writes the changed ones back onUpdateDatabase. - Handles evaluate OCL expressions such as
Project.allInstancesortasksagainst the object space. A list handle rooted on another list handle follows its current object: that is the whole master-detail mechanism. - Controls bind to handles, and refresh by themselves when an object they show changes.
| Next | What you get |
|---|---|
| First Application | Build a small application from an empty project, every component explained |
| Tutorial | A five-step course that builds an invoicing application |
| Examples | More than 40 example programs, one feature each |
| Core Concepts | How the object space, OCL, persistence and subscriptions work |
| FAQ | Short answers to common tasks |