I'm asking this question on the Forum as directed by NT TS as this is one of those undocumented/unsupported items that they understandably avoid.
There are 3 possible choices for the "Load data based on" property in the DataSeries panel; Days, Bars, CustomRange.
The code:
Print("Type: " + Bars.BarsData.RangeType ");
returns
Type: Days (or whatever it is set to) which is correct according to the setting.
and appears that it is a string. There are no blanks on either side of the response.
It seems like a simple string comparison (String.Equals or String.Compare) could be used to compare the response to a string variable. I have not been able to find the correct string compare method or syntax to get the test to work;
I need to be able to test if it is set to "Days" and if not do something different.
I've tried countless variations but have yet to find the correct one. They compile fine but the return has always been a false condition. I've been using the simplist method which compares 2 strings and returns a Boolean result.
Has anyone tried this before and gotten it to work and either is willing to share or work up the code?
With appreciation:
Frank
Comment