CImCombine Class Definition CImCombine:Copy

new_imcombine


The new_imcombine function is a non-class version of the CImCombine:new method which creates and returns a new CImCombine object.

Syntax

C = new_imcombine()

bullet.gif    Creates a default CImCombine with properties initialized to default values.

C = new_imcombine( CImCombine_old )

bullet.gif    This is a copy constructor. It creates a new CImCombine C initialized to the members of the CImCombine_old argument.

Remarks

Two overloads are provided for the CImCombine class. They create a default CImCombine and a copy of a CImCombine. If you pass something other than nil or another CImCombine—such as a string—then the default constructor is used.

Example

The following script illustrates using both constructors. All produce the same result:

C1 = new_imcombine()

-- create CImCombine C1 and initialize

C1:SetVerbose(true)

-- enable verbose listing of results

C2 = new_imcombine( C1 )

-- copy C1 to a new CImCombine C2

Printf("C1 verbose = %d", C1.bVerbose)

-- result: C1 verbose = 1 (=true)

Printf("C2 verbose = %d", C2.bVerbose)

-- result: C2 verbose = 1 (=true)

Related Topics

CImCombine class, new, delete


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