04-24-2010 03:39 PM
Hi all
I have a question about "case structure."
I want to use a "Tab Control" to select different subdiagrams from the case structure, and each subdiagram is labelled by string, such as "voltage", "current", and "power."
But it always shows errors:
Case Structure: selector values have wrong type
Case Structure: no case for some selector values.
I was wondering how to fix this problem. Thank you.
Solved! Go to Solution.
04-24-2010 04:00 PM
Make your Tab control a typedef (not a strict typedef), then connect the tab control to a new case structure, right click on the border of the case structure and select, 'create case for every value'.
Ton
04-24-2010 04:26 PM
04-26-2010 11:31 AM
Darren has posted a great series of nuggets on case structures you can review.
Hope this helps.
04-27-2010 03:33 AM
Totally agree with Dennis Knutson, you don't have to do anything. Just create a case statement and wire it to the Tab control. Will automatically rename all cases as you tab strings and the only thing you need to do is decide which one will be your Default case. Just tested it works fine.
Dimitrios