Home > Contents > Index > 
RESTOREPROPERTY
Sets the property file to the Content Server property file (
futuretense.ini).Syntax
<RESTOREPROPERTY CLOSE="CLOSE_VAL"/>Parameters
CLOSE (required)- Whether to close the connection to a database opened using the current properties. Possible values are
 trueorfalse.
- If
 CLOSEis set totrueany open database connection specified by the current properties is closed before restoring the defaults. This invalidates any resultsets cached against that database. If access to those resultsets is required afterRESTOREPROPERTY,CLOSEshould be set to "false". This keeps the connection open and resultsets against the database available.
- Note that if the Content Server property file
 futuretense.iniis in effect, usingRESTOREPROPERTYwithCLOSE= "true" closes the database connection and deletes all existing variables. One might be tempted to do this if aLOADPROPERTYfails, but it should not be necessary.
errno
The value of
errnois unchanged.Example
This example loads the properties from
other.iniand queries a table in the database specified inother.ini. After using the resultset from the query, the original property file is restored and the connection to the database specified inother.iniis closed. The value of "numbers" is undefined after RESTOREPROPERTY.
<SETVARNAME="errno" VALUE="0"/> <LOADPROPERTYFILE="other.ini"/> <SELECTTOLIST="numbers" WHAT="*" FROM="NumberData"/> after select errno is: <CSVARNAME="Variables.errno"/> <RESTOREPROPERTY CLOSE="true"/>See Also
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.