CImCombine:SaveState


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

Syntax

CImCombine:SaveState()

  

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.

Example

The following script 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

RestoreState

CImCombine class