DefaultFilePath Property

DefaultFilePath returns or sets the project folder for opening files. Returns a string.

 

Syntax

object.DefaultFilePath

object. DefaultFilePath = newVal

Parameter

Type

Description

newVal

String

required

 

Remarks

This is equivalent of setting the path in Options dialog General page. Note that the DefaultFilePath does not change the Project folder in the Options dialog. The DefaultFilePath only changes the path for the current Surfer session.

Example 1

This example demonstrates how to return the default file path of the Surfer application.

Debug.Print SurferApp.DefaultFilePath

Example 2

This example sets "c:\temp" directory as the default file path of the Surfer application.

SurferApp.DefaultFilePath = "c:\temp"

Example 3

This script displays all the properties in the Application object.

Used by: Application object