Icon FindSession Method

function FindSession(const SessionName: String): TEDBSession

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

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

Information This method only applies when the EngineType property is set to etClient.
Image