Hello StephanGeisser,
the switch-case statement expects that the values in case are constant and immutable at the runtime. The error message indicates that the constant Res::DDS1RIGHT may assume different values depending on the language (multi lingual constant) or style (dynamic variant). You can consider it as a constant with multiple (constant) values which are selected dynamically at the runtime.
i have a multi variant project, is it possible to define this const as non-variant?
For this purpose, don't derive any variants from the constant Res::DDS1RIGHT and don't assign any language specific values to this constant. Only the 'Default' value should be initialized.
I hope it helps you further.
Best regards
Paul Banach