Icon FindSession Method

function FindSession(const SessionName: String): TDBISAMSession

Usage

Use the FindSession method to search the list of TDBISAMSession components for a specified session name. SessionName specifies the session to search for.

FindSession compares the SessionName parameter to the SessionName property for each TDBISAMSession component in the available list of sessions in the engine. If a match is found, FindSession returns a reference to the applicable TDBISAMSession component. If an application passes an empty string in the SessionName parameter, FindSession returns the default global TDBISAMSession, Session. If a match is not found, FindSession returns nil.
Image