2.1.14.4.18 wks_has_x


Description

when import data, if we need not show time column and use append col import mode, we need check if wks has x column. It will return true, if wks is not empty AND has X column.

Syntax

bool wks_has_x( Worksheet & wks )

Parameters

wks
[Input] Worksheet to be checked whether have an X column.

Return

True for worksheet has an X column and not empty; otherwise false.

Examples

Ex1

void wks_has_x_Ex1()
{
	Worksheet wks = Project.ActiveLayer(); 
	if(wks_has_x( wks ))
		printf("Active worksheet has X column!");		
}

Remark

See Also

Header to Include

origin.h

Reference