I have a global variable in a while loop inside a using statement that produces the following strings every loop:
C:\Users\G\Desktop\NewFolder\CXXHt.09-20-2016.14.10.28-{0}
C:\Users\G\Desktop\NewFolder\CX9Nt.09-20-2016.11.50.54-{0}
C:\Users\G\Desktop\NewFolder\CX21Zt.09-20-2016.07.26.56-{0}
How can i use these string values inside another using statement. For example, when the first loop output the first line which is C:\Users\G\Desktop\NewFolder\CXXHt.09-20-2016.14.10.28-{0}
assign this value to a string in another using statement and then go to next loop step and so on

Midhun TpRank #388 · 6.5K reputationPosted Sep 27, 2016, 5:00 AM EDT
Why don't you just put second using statement inside a function and call that function on the first using statement's while loop each time. Pass result to the function as a parameter.
Midhun TpRank #388 · 6.5K reputationPosted Sep 27, 2016, 5:36 AM EDT
Try adding the outputs in to an Array and then use it in the second using statement in a loop. Still you can't call during each output. But you will be able to loop through each output.
Hesham Hassanein131 reputationPosted Sep 27, 2016, 5:08 AM EDT
Hesham Hassanein131 reputationPosted Sep 27, 2016, 5:32 AM EDT
Hesham Hassanein131 reputationPosted Sep 27, 2016, 5:57 AM EDT