Bde.DBTables.TSessionList.OpenSession
Delphi
function OpenSession(const SessionName: string): TSession;
C++
TSession* __fastcall OpenSession(const System::UnicodeString SessionName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TSessionList |
Description
Makes an existing session active, or creates a new session component and makes it active.
Call OpenSession to make an existing session active, or to create a new session and make it active. SessionName specifies the name of the session to open.
OpenSession calls FindSession to see if the session specified in the SessionName parameter already exists. If it finds a match, it starts that session if necessary, and makes the session active. If OpenSession does not find an existing session, it creates a new session using the name specified in the SessionName parameter, starts the session, and makes it active.
In either case, OpenSession returns a session object.