June 8, 200520 yr Do you know if reading a P variable from a C/C++ code can be done? If yes, how?For example, if I want to read the TIME ZONE OFFSET variable, I can do it in XML:(P:TIME ZONE OFFSET, minute)But can I do the same from C/C++ ?Thanks !!Eric My Web Site
June 8, 200520 yr Eric,This from GAUGES.H BOOL (FSAPI *execute_calculator_code) (PCSTRINGZ code, FLOAT64* fvalue, SINT32* ivalue, PCSTRINGZ* svalue);You can use it to evaluate pretty much any XML expression. I have used it to return a floating point A: or L: variable. No reason why it shouldn't give you one of the P: values.Doug
June 9, 200520 yr I didn't have time to test, but if I understand this correctly, it means the "code" string should contain "(P:TIME ZONE OFFSET, minute)" and the value should be returned in the fvalue or ivalue.Is that right?Thanks for the info !!Eric My Web Site
June 9, 200520 yr Author FLOAT64 time_zone_offset;execute_calculator_code("(P:TIME ZONE OFFSET, minute)",&time_zone_offset,NULL,NULL);This should work fine.Chris Chris Koegler
Create an account or sign in to comment