Sets or gets the system variable's value
int okutil_sys_values( LPCSTR varName, double * pValue = NULL, BOOL bGet = true )
void okutil_sys_values_ex(string strVar) { double rVal; int nRet = okutil_sys_values(strVar, &rVal); if(!nRet) printf("@%s not found\n", strVar); else { string strMsg; strMsg.Format("Please input new value for @%s\n", strVar); double dd = InputBox(rVal, strMsg); nRet = okutil_sys_values(strVar, &dd, false); if(!nRet) out_str("fail to set value"); else out_int("", okutil_sys_values(strVar) ); } }
origin.h