ActiveDocument Property


Description

Retrieves a reference to the active document of the accessed BrainVoyager instance.

Syntax

objDocument objBrainVoyager.ActiveDocument()

Remarks

If successful, the document object objDocument is returned. Use this object to access document methods. If the operation fails, i.e. if there is no document open in BrainVoyager, the return value is ?.

Example

' VBScript
Set doc = BrainVoyager.
ActiveDocument

// JScript
doc = BrainVoyager.
ActiveDocument();

# PerlScript
$doc = $BrainVoyager->
ActiveDocument();