06-09-2011 08:27 AM
Hi!
I am trying to select specific data from a string array. The string data should be auto indexed to a string array indicator, but I just want specific values to be placed in the new array.
A boolean array controls when data should be auto indexed to the new string array. Every time a true appears in the for loop, the string data should be placed in the new string array, but I have a problem. I manage to pick the specific data to place in the new array, but i also get empty strings in the array when I am not supposed to write to the array. Instead of empty strings, I want my string data to be "compact". So when bool number 3 in the array is true, I want that string data to be in row 1, and not row 3.
Can you help me sort this one out?
Best regards
06-09-2011 09:26 AM
Here is what I think you want
06-09-2011 09:28 AM
Here is a different version that also changes the size of the array for the indicator when the value is changed. You could do as much as you want here.
06-10-2011 01:28 AM
Thank you! This solves my problem.
06-10-2011 06:31 AM
You should make the correct answer as the accepted solution so that everyone knows that you problems has been solved. Look at the bottom of the answer and you should see the blue box mark as accepted or something like that.
Glad I could help and thanks for the kudos.