Page 1 of 1

ConnectDialog strange behaviour

Posted: Wed 18 Feb 2015 12:25
by MaGl
I'm using ConnectDialog for the first time and run into a problem.
On runtime I read the connect - parameters (Server, SID, Port) from an ini-file.
I set these informations to the TORASession. Afterwards (if username and password
was not provided by some Commandline-parameters) I set Loginprompt:=true and the Connectdialog pops up. Okay so far... but the connectDialog doenst have the (new) server-information but the one I use during design-time. What went wrong?
If I provide username / password via command line - parameter there is no use of the connect-dialog (Loginpromt:=false). The program connets to the right (what was stored in the ini) Database.

Help plz!

Re: ConnectDialog strange behaviour

Posted: Wed 18 Feb 2015 15:04
by AlexP
Hello,

To implement such behavior, you should set the StoreLogInfo property to False.

Code: Select all

  OraSession1.Server := 'localhost:1521/orcl';
  ConnectDialog1.StoreLogInfo := False;
  ConnectDialog1.Execute;