How to reference exported string enum dropdown?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By anssiko

Hi,

when I try to reference an exported enum of three strings, I get nothing - not even nil or Null, nor do i get a crash. Only the value does’t register. I’m referencing it as usual with the name of the variable, “node.strings”.

Is ‘node’ or ‘strings’ the exported variable? An enum is exported though another variable name.

enum the_enum {...}
export (the_enum) var selected_value = the_enum...

selected_value should be the enum’s selected index.

Magso | 2020-11-19 11:56

Thank you, it was this.

anssiko | 2020-11-19 12:31