Skip to content

Missing a method to set an enumerated value by Value. #1885

Description

@hvxl

I've come to understand that using labels in code logic is discouraged because they can be localized, or they may change when typos are fixed. So I'm updating my application to only use indexes. I have some code that sets a value, but I'm failing to find a method to do that for an enumerated value (ValueType_List) by index.

I found two methods to set an enumerated value: SetValue() [8/8] and SetValueListSelection(), but they both work on labels. SetValue() [5/8], which takes an int32 argument, throws an error when used on a ValueType_List.

I don't expect I'm supposed to use a combination of GetValueListItems(), GetValueListValues(), and SetValueListSelection() to accomplish what should be a simple task.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions