Yes, setting the properties programatically after the creation does work.
Actually I have a DataModule superclass, with the IBConnection, one SQLTransaction and one SQLQuery. These are used for some basic tasks like querying generators.
The real DataModule created at the start of the app is a subclass of that. In its .dfm file, the order is:
- the IBConnection, the SQLTransaction and the SQLQuery inherited from the superclass
- all the SQLTransactions introduced in the inherited DM
- all the SQLQueries introduced in the inherited DM (basically, the order I put them at the designer)
In another project I follow other structure: separate but not inheritance-linked DM's. The problem doesn't appear.