Icon OpenSession Method

function OpenSession(const SessionName: String): TDBISAMSession

Usage

Call the OpenSession method to make an existing TDBISAMSession component active, or to create a new TDBISAMSession component and make it active. SessionName specifies the name of the session to open.

OpenSession calls the TDBISAMEngine FindSession method to see if the TDBISAMSession component specified in the SessionName parameter already exists. If it finds a match via the SessionName property of an existing TDBISAMSession component, it starts that session if necessary, and makes the session active. If OpenSession does not find an existing TDBISAMSession component with that name, it creates a new TDBISAMSession component using the name specified in the SessionName parameter, starts the session, and makes it active.

In either case, OpenSession returns the TDBISAMSession component.
Image