LT_set_var
Page-LT_set_var
Set LabTalk variable value temporarily setting this page as the active page.
BOOL LT_set_var( LPCSTR lpcszLabTalkVarName, double dbValue )
TRUE if OK, and FALSE if it fails.
EX1
void Page_LT_set_var_ex1() { double vv; GraphPage gp; gp.Create("origin"); if( gp ) { gp.LT_get_var("page.height", &vv); out_double("page's height is ", vv); vv += 10; // Set the new value: if(gp.LT_set_var("page.height", vv)) out_str("set page's height in LabTalk succeeded"); else out_str("set page's height in LabTalk failed"); gp.LT_get_var("page.height", &vv); out_double("new value is ", vv); } }
Sets the value of a LabTalk global string variable or a LabTalk object string property.
Page::LT_get_var
origin.h