Error getting tags :
error 404Error getting tags :
error 404 preserveVariables | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
preserveVariables
Basics
Expander triangle
Type
Property
Syntax

set the preserveVariables to {true | false}

See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
Mac OS X,Windows,Linux
Security
None required
Summary
Specifies that the values of script-local variables should be preserved across recompilations of the script.
Examples

set the preserveVariables to true

Additional Comments
Expander triangle

Set the preserveVariables to true to make Revolution remember values of script-local variables across recompilation of the script. Script recompilation occurs when an object's script property is set. This property affects only variables at script scope, that do not have an initializer.

Value:

The preserveVariables is true or false.

By default, the preserveVariables is set to false.

Comments:

The preserveVariables property is provided as a background compatibility aid. It should not, in general, be used in user scripts as the IDE automatically handles preservation of variables via the Variable Preservation option in the preferences and Script Editor Script menu.

User Comments
Expander triangle
User thumbnail
Oliver Kenyon
StarStarStarStarStar
Nov 24, 2009
Its worth remembering that this property is designed for use by the Revolution Integrated Development Environment (IDE) or for people writing development tools for revTalk. It hasn't been thoroughly tested for use in user code.
If you are using this property, only make it true whilst setting the script which you wish to have variable values remembered for, then set it back to false again. This is quite important as failing to do it can cause unexpected behavior in the Revolution IDE.