I will describe below my current flow, but the main problem is how to create a dynamic list/array to store the values and later I want to sum them.
Read PDF Text: I will read the PDF file and convert it to TXT:
Assign - Array: Split(strText,Environment.NewLine) - The output above I will create line by line to read those strings in For Each and get what I need via Regex;
For Each: strArrayText (list of items) and always when I find the RegEx code I want, I want to store in the variable and here it starts my problem because I have this FOR EACH looping, hence always when the RegEx code finds what I want, I want to store it in a list/array…
I created a new assign called:
strList = new List(of String)()
And here I tried so far everything (Append, Items to collection) but those methods just allow to store only ONE variable, while I have this FOR EACH looping where I’ll need to store 2, 3 or 5 variables and later SUM the numbers found…
Any ideas here?
And here I tried so far everything (Append, Items to collection) but those methods just allow to store only ONE variable, while I have this FOR EACH looping where I’ll need to store 2, 3 or 5 variables and later SUM the numbers found…
Any ideas here?
Wouldn’t your variable contain new values for every iteration. So you could use append items to collection with only one variable.
But the problem Peter is I’m using the FOR EACH, therefore I can have 01 string inserted or I can have 05 strings. If i use yourStringVar1, it is not dynamic.
Would you mind attaching the file just for my reference?;
When you used the Regex ‘’ TEXT PALLET HERE ‘’, but it can be different pallet names… That’s why on my Studio I was using For Each, to go through each line. Is there a way?