Changed behavior for MyConnection request
Changed behavior for MyConnection request
When MyQuerie's editor is invoked and the MyConnection connected property is set to "False", it will change to "True". I would prefer that it did not change state in this case. When a user is running the program, and the connected is set to "true" it will try to connect before the login with proper password is done - and with the password stored in the TMyconnectin witch is for development only, it will also connect to the "localhost". I can trap that the connection is connected with code and then manually close it - but after doing that a few times every day it stats to get boring so i make this post.
-
AndreyZ
Hello,
To avoid this problem, you should set the TMyConnection.Options.KeepDesignConnected property to False. The KeepDesignConnected property is used to prevent an application from establishing a connection at the time of startup. For more information about this property, please read the MyDAC documentation.
To avoid this problem, you should set the TMyConnection.Options.KeepDesignConnected property to False. The KeepDesignConnected property is used to prevent an application from establishing a connection at the time of startup. For more information about this property, please read the MyDAC documentation.