2.1.14.3.29 page_type_2_int


Description

convert page type to int value.

Syntax

int page_type_2_int( string strType )

Parameters

strType
[input] The page Type of input, can be "Graph", "Worksheet", "Page", "Note" , "Layout"

Return

If false, return 0; else return the page type's value, EXIST_WKS,EXIST_GRAPH, EXIST_MATRIX, EXIST_NOTES,EXIST_LAYOUT

Examples

EX1

void page_type_2_int_EX()
{
	string strPage = "Graph";
	if(EXIST_GRAPH == page_type_2_int(strPage))
		out_str("Graph convert to EXIST_GRAPH");
}

Remark

See Also

Header to Include

origin.h

Reference