Hi
I have the following problem: I configure the properties from the connection at runtime (Server, Username, databasename ...) because it can be different by every customer. When the connection is active in the IDE, I compile and rollout this version, I get an error that i.e. the server is unknown when the application is startet by the customer. That's why the connection is set to active when the form (containing the connection) is created. Have I some possibilities to avoid this? (I know I can set active to false before compiling. But because it is set automatically to active when I open and close a table I often forget to set it to false ...)
Kind regards, Peter
Connection active in IDE
Re: Connection active in IDE
Hello,
In order to make a connection set in design-time not to open in runtime, you should set the KeepDesignConnected property to False:
In order to make a connection set in design-time not to open in runtime, you should set the KeepDesignConnected property to False:
Code: Select all
UniConnection1.Options.KeepDesignConnected := False;Re: Connection active in IDE
Hello,
Glad to see that the problem was solved. If you have any other questions, feel free to contact us.
Glad to see that the problem was solved. If you have any other questions, feel free to contact us.