Difference between Open and Connect Method on TUniConnection

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
testpresta
Posts: 32
Joined: Sat 07 Jun 2014 19:41

Difference between Open and Connect Method on TUniConnection

Post by testpresta » Sun 08 Jun 2014 08:21

Hello

I am wondering what is the difference between Open and Connect Method fo TUniConnection object
I have the same question for difference between Close and Disconnect.

Thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Difference between Open and Connect Method on TUniConnection

Post by AlexP » Tue 10 Jun 2014 08:27

Hello,

There is no difference between connection establishing methods:

Code: Select all

  UniConnection.Connected := True;
  UniConnection.Open;
  UniConnection.Connect;
  UniConnection1.Connected := False;
  UniConnection1.Close;
  UniConnection1.Disconnect;
Eventually, the same method SetConnected is called. These methods were added for compatibility when migrating from other components to UniDAC.

Post Reply