08-17-2009 11:38 AM
Another structure for today, "Case Structure". Any new tricks for this old dog?
Say you have to do one operation the first m iterations of a loop, a different one the next n interations, and so on. I have seen a lot of clever comparisons using Remainders, moduar arithmetic, etc.. Ever tried dumping the comparisons and entering a range?
Tired of adding cases for all of your enumerated types, check out your right-click options.
You read the help and say "Great, I can wire a string in there". You have a special case called "LabVIEW". Your boss tries it out and enters "LabView" and your VI fails. He says, "What an idiot, can't even write a simple VI". You say (or just think) "What an idiot, who would enter 'LabView'". Before you reach for"To Upper Case", try a right-click.
08-17-2009 05:57 PM