add_new_window

 

Description

Create page window or Note window in active folder or special folder..

Syntax

string add_new_window( Folder & fld = NULL, int nWinType = EXIST_WKS )

Parameters

fld
[input] The special folder, if NULL, create in active folder
nWinType
[input] the window type

Return

return the window name if success else return empty.

Examples

EX1

//create new workbook in active folder
void add_new_window_ex1()
{
    string strNewWindow = add_new_window();
}

EX2

//create new matrixbook in active folder
void add_new_window_ex2()
{
    string strNewWindow = add_new_window(NULL, EXIST_MATRIX);
    out_str(strNewWindow);
}

Remark

See Also

header to Include

origin.h

Reference