2.1.14.3.21 page_get_storage_str


Description

Get a binary storage from a page into a string.

Syntax

bool page_get_storage_str( Page & pg, LPCSTR lpcszName, string & strValue )

Parameters

pg
[input] the page containing the binary storage
lpcszName
[input] pointer to the name of the binary storage
strValue
[output] the string to receive the value

Return

If success then true else false

Examples

EX1

//Run the example code in page_set_storage_str before this code as to check the result.
void  Run_page_get_storage_str()
{
    Page pg("Book1");
    string strName = "var";
    string strVal;
    bool bRet = page_get_storage_str(pg,strName,strVal);
    out_str(strVal);
}

Remark

See Also

page_set_storage_str

Header to Include

origin.h

Reference