ActiveConnection Property

 

Description

 

Sets or returns a BSTR value that contains a definition for a connection if the connection is closed, or a Variant containing the current Connection object if the connection is open. Default is a null object reference.

 

PowerBASIC Syntax

 

PROPERTY GET ActiveConnection () AS VARIANT

PROPERTY SET ActiveConnection (BYVAL newVal AS VARIANT)

PROPERTY SET putref_ActiveConnection (BYVAL pCon AS IDispatch)

 

Parameter (SET ActiveConnection only)

 

newVal

A BSTR value that contains a definition for a connection if the connection is closed, or a Variant containing the current Connection object if the connection is open.

 

Parameter (SET putref_ActiveConnection only)

 

pCon

An object reference to the active connection.

 

Return Value (GET ActiveConnection only)

 

VARIANT. A BSTR value that contains a definition for a connection if the connection is closed, or a VT_DISPATCH Variant containing the current Connection object if the connection is open.

 

Remarks

 

The default value is a null object reference.

 

Valid XHTML 1.0 Transitional