‎02-09-2005 03:03 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
‎02-09-2005 03:06 PM
‎02-09-2005 03:24 PM
1... Extract the two characters you want to use as a selector.
2... Wire that 2-char string to the selector of the CASE structure.
3... Set the selector value (the text in the top center of the CASE structure) to "A0" (include the quotes)
4... Inside that case, put a constant: One of your enums set to TEST
5... Add another case.
6... Repeat 3 and 4 until all cases are covered.
I strongly suggest that you use a TYPEDEF to define your enum, unless your enum is well defined and will not change. With a TYPEDEF, if you change the TYPEDEF itself, all instances change with it.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
‎02-09-2005 03:38 PM