BCB6 and 6.6.3-stable ZQuery not loading Connection property

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
jaridmo
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 22.09.2008, 20:43
Location: Las Vegas

BCB6 and 6.6.3-stable ZQuery not loading Connection property

Post by jaridmo »

I have a datamodule with a TZConnection. The connection parameters are loaded at run time.

I have form(s) with TZQuery components on them and I set the Connection property to the TZConnection on the datamodule (dm.ZConnection).

I have the datamodule included in each form (#include "datamodule.h")

When I save the form(s) and close it the property has been written to the dfm file. When I open the form the Connection property is blank. Then when I close the form the Connection property is lost.

Any ideas or solutions?

Please help.
jaridmo
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 22.09.2008, 20:43
Location: Las Vegas

Post by jaridmo »

I think I have narrowed this down to having multiple projects in a project group. Some of the projects have the same named datamodule. This must cause some confusion within the environment for the connection.

The lost connection property is a problem...
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

This looks like an IDE bug for BCB6. Until now I didn't read about similar stories here on the forum.

I would advise you set the connection property at runtime when loading the form. It's more coding, I know, but unless you find out where we can fix it in the library you'll have to live with it, I'm afraid. BCB6 is a rearely used environment with zeoslib and I don't have the software nor c-experience to play with it.

Mark
Image
Post Reply