PathName Property


Description

Gets or sets the name of a project.

Syntax

strPathFileName objDocument.PathName()

Remarks

Works with all three project types. This property keeps internally the full path plus file name of objDocument. If you specify a filename without a path, the current pathway is used to define the full file name.
If you assign a new file name for this property and then save the document (see below), the dcoument is saved under the new name. An alternative method would be to call the SaveAs method

Example

' VBScript
Set doc = BrainVoyager.
OpenDocument("cg_objects.fmr")
doc.
LinkStimulationProtocol "cg_exp_r1.prt"
MsgBox
doc.Pathname

doc.Pathname = "cg_objects_prt.fmr"

doc.
Save

// JScript
doc = BrainVoyager.
OpenDocument("cg_objects.fmr");
doc.
LinkStimulationProtocol("cg_exp_r1.prt");
doc.Pathname = "cg_objects_prt.fmr";

doc.
Save();

# PerlScript
$doc = $BrainVoyager->
OpenDocument("cg_objects.fmr");
$doc->
LinkStimulationProtocol("cg_exp_r1.prt");
$doc->Pathname = "cg_objects_prt.fmr";

$doc->
Save();