Method DacSession():isDefault() Professional

Checks if the session is the default session

Syntax
:isDefault() --> lIsDefault
Return

The method returns .T. (true) when the DacSession object is set as the default session for the current thread. Otherwise, it returns .F. (false).

Description

The method checks if a DacSession object is defined as the default session of the current thread. This is important when a program uses multiple sessions and/or connects to multiple servers. All requests for database operations created by commands or functions such as USE or DbCreate() for example, are forwarded to the server by the default session object. The method :setDefault()is used to change the default session of the current thread.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.