03-02-2011 12:59 AM
Hi Agyna,
Indeed as Mike says. It's a VI snippet. It means it's a normal image, but then with some Meta-information about the code. You can drag the png-file onto a block diagram and then you have the VI.
Here is a link that explains how to create a VI snippet
Here is some more information about it.
Kind regards,
Bjorn
03-02-2011 10:46 AM
Hi Bjorn,
Thank you, this works. The only thing is I have to change the delimiter from ",\s" to just a space. and it works fine. But I am running into another issue. The problem I am having is that if I put 2 "spaces" between strings or is I add one more space at the end of the incoming strings, it considers the second space as string and of course, it reports "not found". How to get rid of any extra space.
How to get the program to disgard any extra space in the incoming string?
For example I have "washington" " "dallas" "seattle" ". It reports "shington ington washington notfound las seat notfound
Note that " " = space
Thanks for your help.
Agyna
03-02-2011 10:59 AM
What you could do is a check in the first for loop whether the value from you input string is empty. If the value is empty, you dont have to execute what is inside the 1st for-loop. If the string is empty, don't do anything, if not, execute the code.
03-02-2011 11:33 AM
Thank you Bjorn, that solves it. I learned a lot from you. thanks a lot.
Agyna