is_same_layer

 

Description

Check whether two layers is same one

Syntax

bool is_same_layer( Layer & ly1, Layer & ly2 )

Parameters

ly1
[input] Worksheet or Matrixsheet
ly2
[input] Worksheet or Matrixsheet

Return

true = the layers are same

false = the layers are not same.

Examples

EX1

//Make a work book window active before run this example
void is_equal_layer_test()
{
        Worksheet wks1=Project.ActiveLayer();
        Worksheet wks2(wks1);
        if(is_same_layer( wks1, wks2))
                out_str("Two layers are same.")
}

Remark

See Also

header to Include

origin.h

Reference