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
true
orfalse
.
- If
CLOSE
is set totrue
any 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
,CLOSE
should be set to "false
". This keeps the connection open and resultsets against the database available.
- Note that if the Content Server property file
futuretense.ini
is in effect, usingRESTOREPROPERTY
withCLOSE
= "true
" closes the database connection and deletes all existing variables. One might be tempted to do this if aLOADPROPERTY
fails, but it should not be necessary.
errno
The value of
errno
is unchanged.Example
This example loads the properties from
other.ini
and 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.ini
is closed. The value of "numbers
" is undefined after RESTOREPROPERTY.
<SETVAR
NAME="errno" VALUE="0"/> <LOADPROPERTY
FILE="other.ini"/> <SELECTTO
LIST="numbers" WHAT="*" FROM="NumberData"/> after select errno is: <CSVAR
NAME="Variables.errno"/> <RESTOREPROPERTY CLOSE="true"/>See Also
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.