Hi,
I have a list that I made from a delimited string. That string looks like this: (number)|(name)|(number)|(name)|(number).... etc. What I have done is taken that string and parsed it by the delimiter ('|'). I then took that list of all the values and made a new list of just the "names" and created new columns with it. The problem that I have run into is when I parse the string and place it into each column. Because, not every string in every row starts with the same value. I had to get all the "names" from two rows of data. So the first row, third row, fifth row, etc should be the same, but which "name" their strings end on is different. Subsequently, every second, fourth, sixth, etc rows start with a different "name" (where the odd rows left off). The list of names that I get to make the columns is all the names that exist, but I want to be able to place all the numbers in their proper columns.
Part of the script that I used to parse all the data is:
// Get all the pin names
List = {};
list = {};
list2 = {};
// Iterate through the first rows of :Test_Result to get the pin names
list = words(column(dt4,"Test_Result")[1], "|");
list2 = words(column(dt4,"Test_Result")[2], "|");
// First value in string is useless information, so remove it
list2 = Remove(list2,1);
one_test_result_list = concat(list,list2);
// Get all the pin names starting with the second value
For(i = 1, i <= nitems(one_test_result_list)/2, i++,
Assign(List, one_test_result_list[i*2]);
);
I have no idea how to do this. Because the "number" following every "name" in the string is the value that corresponds to that name. So if I see that name, I need to place the next value into that name's column.
Thank you so much for any help!