CImCombine:RestoreState CImCombine:SetAdjustExptime

CImCombine:SaveState


The SaveState method preserves all data members of the CImCombine class for later use.

Syntax

CImCombine:SaveState()

Remarks

This method saves all data members 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.

Example

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

 

C = CImCombine:new()

-- 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, RestoreState