Icon Connected Property

property Connected: Boolean

Usage

Use the Connected property to connect or disconnect a session. Setting Connected to True connects the session, triggering the BeforeConnect event before connecting and the AfterConnect event after successfully connecting. If the SessionType property is set to stRemote, then ElevateDB will attempt to connect to the ElevateDB Server specified by the RemoteHost or RemoteAddressand RemotePort or RemoteService properties. If the session can successfully connect to the ElevateDB Server, it will then automatically login to the server using the LoginUser and LoginPasword properties. If the SessionType property is set to stLocal, then ElevateDB will connect the session and then automatically login to the configuration specified via the TEDBEngine ConfigPath property, using the LoginUser and LoginPasword properties.

Setting Active to False closes any open datasets, and disconnects active database connections. If the SessionType property is set to stRemote, then the connection to the ElevateDB Server is closed and the user is logged out. If the SessionType property is set to stLocal, then the user is simply logged out.
Image