Description: This statement changes the space allocated in the persistent value (.VAL) file for a variable.
Warning: This function should be used by advanced programmers only since irrevocable alteration of your application may occur.
Returns: Nothing
Usage: Script
Format: (ChangePersistentSize(Variable, Size)
Parameters: Variable { variable value } { required } { no default: }
Any expression for the variable value. This value is usually returned from a call to AddVariable or FindVariable.
Size { numeric } { required } { no default: }
The new size for the persistent variable.
Comments: This statement will only work on variables that are already persistent. It will adjust the size of allocated space in the persistent value (.VAL) file for the owning module.
Example:
If 1 Main;
[
ChangePersistentSize(FindVariable("runningHrs",
Self(), 0, 1), 40);
]
This changes the persistent size for the variable runningHrs (if it was already defined as persistent).
See Also:
AddVariable | FindVariable | MakeNonPersistent | MakePersistent | PersistentSize