06-24-2025 10:17 AM
I was doing the same thing that Christian suggested and make one string to search. Here is an example on how to do this:
I only tested it with the data that you provided, It may need some tweaking.
06-25-2025 01:16 AM
Hi,
The termination characters will always be a single character or two repeating numbers. The starting character of the sandwich will always be a single character (e.g. a 1 or an S). The beginning of the sandwich is independent of the end of the sandwich so it can begin with a 1 and end with a 33, or begin with an S and end with an S.
Row 2 is a sandwich because it gets terminated by the S (I see now that i forgot to add that the sandwich can also be terminated by the single character).
Yes, the output will only contain one of the termination characters. So if it gets terminated by 22 the last element will only be a 2. Also if it gets terminated by a single character such as S, the last element will be the S.
06-25-2025 01:25 AM
Hi, thanks for the solution. I am running LV2018 so I can't open the code but I will try to implement it based on the picture. How do your other cases look inside the case structure?
06-25-2025 06:35 AM
Here is a 2017 version
06-25-2025 06:40 AM
Based on your new requirements you are going to have to make some tweaks to this program to get you where you need to go. Try some different data sets and come back if you get stuck.
06-27-2025 09:00 AM
If you only need the meat and not the bread, you can use this.