DumpToFile Method

Writes the contents of a VarSet object to a file.

Syntax

ScriptContext.GetScriptState.GetScriptSet.DumpToFile(FileName String);

Parameters

FileName Specifies the name of the file to which to write the VarSet.

Return Type

None.

Example

To write the contents of the MYsavedvarset VarSet object to the DUMPFILE1.VAR file, enter:

Dim MYscriptstate
Dim MYvarset
Set MYscriptstate = ScriptContext.GetScriptState
Set MYvarset = MYscriptstate.GetSet("MYsavedvarset")
MYvarset.DumpToFile("DUMPFILE1.VAR")