You had a Set() statement. That requires a double as a parameter. Instead of providing it with a double, you gave it a DataSeries. How does the matter of regions come in?
A DataSeries is a structure that holds indexed double values. You access those double values by specifying the relevant index. If you do not specify an index, you are referring to the DataSeries, instead of any of its members. Compare the statement that you had, and the corrected statement, as I wrote it. You should be able to see the difference by reference to the syntax that is detailed in the NT Help.
Comment