Previous Next

Retrieves, from a specified file, a list of named variables and their values, with the option to edit this list in the process.


<pc:LoadVariables pc:filepath="file-pathpc:include="csv-list" pc:overwrite="overwrite" />


overwrite  ::=  { true | false }

The required pc:filepath is a path pointing to the location of the file to be read.

The optional pc:include attribute allows you to specify a subset of variables that you DO want to load. Other subsets in the file (if any) are excluded.

The optional pc:overwrite attribute allows you to specify whether or not you want existing variables with the same names to be overwritten. By default, they are overwritten.

This operation is only successful if the variable names and values are stored in the file in the same way in which <pc:SaveVariables/> produces this information.



This example loads, from the variable settings found in "c:\temp\myfile.xml", the settings for the connectstring and owner variables.

<pc:LoadVariables pc:filepath="c:\temp\myfile.xml" pc:include="connectstring, owner">

Input file

For details on the required format of the input file, go to the "Result file" section of the pc:SaveVariables help topic.


See also