Page 1 of 1

Changed behavior for MyConnection request

Posted: Sat 03 Dec 2011 08:37
by kaffeburk
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.

Posted: Mon 05 Dec 2011 15:57
by 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.

Posted: Sun 11 Dec 2011 06:37
by kaffeburk
Hi,

That does indeed solve the problem. Thanx.

Posted: Mon 12 Dec 2011 16:53
by AndreyZ
If any other questions come up, please contact us.