CImCombine:SaveState


The SaveState method preserves all properties of the CImCombine class for later use. This method saves all properties of the CImCombine object. You can then perform calculations using new member values and, later, restore the prior state of all member variables using a single command (see RestoreState). Used with RestoreState, this command comprises a "push-pop" pair for the class data.

Syntax

CImCombine:SaveState()

Example

The following script saves and restores the state of the CImCombine class:

C = new_imcombine()

-- create a CImCombine

C:SaveState()

-- preserve the state of all class members

  ...

-- change member values, apply class methods.

C:RestoreState()

-- restore the prior state of the class

Related Topics

CImCombine class

RestoreState


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.