In module chart_helpers, the function chart_getcolor currently passes an unrestricted index by reference.
Index should be passed byval.
Index can only be between 1 and 10, but that is not error checked
colors() is created every time the function is run while it's essentially a constant
It might be better to create a public enum with an Else for handling out of bounds index. I haven't figured out why index is a variant though.
In module chart_helpers, the function chart_getcolor currently passes an unrestricted index by reference.
Index should be passed byval.
Index can only be between 1 and 10, but that is not error checked
colors() is created every time the function is run while it's essentially a constant
It might be better to create a public enum with an
Elsefor handling out of bounds index. I haven't figured out why index is a variant though.