preserveVariables | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | preservevars | ||||||
Summary | Specifies that the values of script-local variables should be preserved across recompilations of the script. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Command: local | ||||||
Description | Set the preserveVariables to true to make LiveCode 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. 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. | ||||||
Tags | properties |