11-11-2013 09:44 AM
When you wire a string to a case structure it puts each state of the case in double quotes. A comma is then used to have multiple values go to one case, and the ... (dot dot dot) is used as a span of values that go to one case. My simple question that for some reason I was thinking about today is this:
Why does LabVIEW insert spaces at the start, and end of a case structure case?
I was doing some scripting and I got a 1D array of FrameNames. I then did a Search 1D array but my program didn't work at first because I forgot to put the spaces and quotes in my search. I understand the quotes, but why is the spaces needed?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-11-2013 10:44 AM - edited 11-11-2013 10:45 AM
My understanding is that this was done for readability in the selector and the FrameNames property simply blindly returns the strings (probably because whoever implemented it didn't notice the spaces or chose not to deal with them).