Skip to content

Chart_GetColor can be improved #59

Description

@RaymondWise

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions