%ObjMgr

This special method initialises a Object Manager and returns a connection object (also known as a manager object).

The first connection is automatically the default connection, which can be used implicitly by many of the other special methods. Deleting this connection object results in no default connection being available. A new default connection can be established by using %ObjMgr() again or by using the %Set(Default) special method on an existing connection object.

All special method names and keywords are case-insensitive.

Syntax

connection = %ObjMgr()

Syntax elements

connectionA DBO variable name for the connection (manager) object.

Applicability

Internal objects only. The equivalent for language objects is %Connect.

Example

IntObjMgr = %ObjMgr()

See also

How to use Internal Objects in DataBasic