| 2.1.14.3.27 page_set_info_var_value
 DescriptionSet the value of a variable in a Page's Info section
 Set the value of a variable in a Page's Info section
 Syntaxbool page_set_info_var_value( Page & pg, LPCSTR lpcszVarName, LPCSTR lpcszVarVal, LPCSTR lpcszStorageSection = NULL, int* pnPreferNodeType = NULL ) 
 bool page_set_info_var_value( Page & pg, LPCSTR lpcszVarName, double dVal, LPCSTR lpcszStorageSection = NULL ) Parameters pg[input] the page containing the variable to set lpcszVarName[input] pointer to the name of the variable lpcszVarVal[input] pointer to the string value lpcszStorageSection[input] pointer to the name of the section.  If NULL then the Variables section is used. pnPreferNodeType[input] pointer to the node type of the section.  If NULL then the variable type will be auto detected.
 
  pg[input] the page containing the variable to set lpcszVarName[input] pointer to the name of the variable dVal[input] pointer to the double value lpcszStorageSection[input] pointer to the name of the section.  If NULL then the Variables section is used.
 ReturnIf success then true else false
 If success then true else false
 ExamplesEX1
 void Run_page_set_info_var_value_Ex1()
{
    Page pg("Book1");    
    bool bRet = page_set_info_var_value(pg,"var","abc","user.var");    
}EX2
 void Run_page_set_info_var_value_Ex2()
{
    Page pg("Book1");    
    bool bRet = page_set_info_var_value(pg,"var",12.25,"user.var");    
}RemarkSee Alsopage_get_info_var_value
 Header to Includeorigin.h
 Reference |