Support Board
Date/Time: Fri, 26 Dec 2025 21:38:08 +0000
Post From: How can a DataColor array be reset in ACSIL
| [2025-12-26 15:50:53] |
| curious16 - Posts: 12 |
|
I would like to set and unset using the DataColor array depending on whether a study links to another study that has, or does not have, per-bar color data. It is straightforward to initialize sc.Subgraph[k].DataColor by assigning any color value to the first element such as sc.Subgraph[k].DataColor[0] = 0; However, if this subgraph is later changed to a source without per-bar color data, the subgraph anyway keeps using the DataColor array. This requires to supply a constant value to each element of the DataColor array if it ever is initialised. I tried using sc.Subgraph[k].DataColor.ResetMembers() to reset the array. This looked fine in the debugger immediately after the call, but the DataColor array was subsequently reallocated. What is the purpose of the ResetMembers() method? How can use of the DataColor array be reset in ACSIL? |
