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
Hesham HassaneinPosted Sep 27, 2016, 9:57 AM
Midhun TpPosted Sep 27, 2016, 9:36 AM
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 HassaneinPosted Sep 27, 2016, 9:32 AM
Hesham HassaneinPosted Sep 27, 2016, 9:08 AM
Midhun TpPosted Sep 27, 2016, 9:00 AM
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.