LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure Spaces

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?

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

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).


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,465 Views)