Strings of enumerated types cannot be changed during runtime. Writing to the
Strings[] property node is ignored (an error code 1000 is generated).
Enums are types. They can be used to wire to a case, and the case names
change because it is a enum type, the names cannot change during runtime!
Use a menu ring or text ring instead. A menu ring and text ring are U16 (see
for yourself in the diagram). A enum is a <> type. The text ring looks the
same for the user.
When you wire a text or menu ring to a case the names will not show up in
the case (because the names can change during runtime!).
Change the text of a text or menu ring using the Strings[] property.
Regards,
Wiebe.
"mstlaurent"
wrote in message
news:506500000008000000365700
00-1027480788000@exchange.ni.com...
> Hello,
> I get a string from a configuration file with read key.vi and I want
> to put that value into a control which is a strict type def.
> My type def contains only an enum with the items "A", "B" and "BOTH".
> Then I read "BOTH" from the file.
> How do I select the corresponding string in my enum?
> I tried a lot of things, casting, property nodes...
> It sounds so simple!...
> Thanks