From RAD Studio API Documentation
Jump to: navigation, search


function OpenSession(const SessionName: string): TSession;


TSession* __fastcall OpenSession(const System::UnicodeString SessionName);


Type Visibility Source Unit Parent
function public
Bde.DBTables TSessionList


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.

See Also