is_sheet_empty

 

Description

Get sheet empty status

Syntax

bool is_sheet_empty( Layer & ly )

Parameters

ly
[input] Worksheet or Matrixsheet

Return

false, Layer is not empty

true, Layer is empty.

Examples

EX1

//Make sure the active layer is a worksheet or matrixlayer before run this code
void is_sheet_empty_Ex1()
{
        Datasheet dsh = Project.ActiveLayer();
        if(is_sheet_empty( dsh))
                out_str("Datasheet is Empty.")
}

Remark

See Also

header to Include

origin.h

Reference