LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cases in case structure keep changing

When I place a case structure, click inside the selector, enter e. g.

0, 1, 2

they don't stay that way but instead turn to

"0", "1", "2"

.

 

Am I correct that the cases are now of type string instead of int? How can I have cases without the ' " '?

0 Kudos
Message 1 of 2
(2,751 Views)

Yes, if you have wired a string to the case selector, it will display as quote-enclosed strings. The items displayed in the case structure adapt to the type of data wired to the case selector:

2016-02-02_09-43-30.png

 

An enum will always display as the string value of the enum - if you want to display it as just a number, type-cast it to an appropriate data type (e.g. U8)


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 2
(2,744 Views)