[Lazarus] tiOPF oprm dia dia2pas

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Apr 8 09:04:37 CEST 2009

On Tue, Apr 7, 2009 at 9:58 PM, Osvaldo Filho <arquivostcf at gmail.com> wrote:
> Any one could help me with OOP and Business Objects Persistence ?
> I lookfor change from dbaware programs for Object/DBAware programs.
> How can i use datasets with tiOPF or oprm?

A better place to ask tiOPF questions would be in the tiOPF newsgroups.

As for using tiOPF with DB-Aware components. That is what the
<tiopf>/Options/tiDataset.pas unit is for. This allows you to use any
DB components with your business objects.

Alternatively, I highly recommend you stay away from DB-aware
components and rather us Model-GUI-Mediator (also included in tiOPF)
which allows you to use any standard (non-db) gui components and make
them "object aware". There is an example of this for VCL, LCL and
fpGUI. It's Demo 21 (address book demo). We have been using it in a
commercial application for 3 years already with great results.

> Any one could give me a diagram in dia for example and procedures for
> convert it in a .pas code?

Model Maker is really the best tool for this job, but it's not free.
But I have been using UML diagrams (with dia) for years and simply
implement them by hand. I have never found a tool that does things
automatically and in exactly the way I want. So hand coding is still
the best option for me.

If it's generating quick business objects and tiopf visitors that you
are after. There are three methods of doing this. tiSQLeditor
(included with tiOPF but a bit dated), Code Templates (still my most
used option) and then there is Lazarus Data Desktop (which is also
very impressive).

  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the Lazarus mailing list