Hey guys,
Im trying to learn how to use a Parallel.For loop. Ive got a big for loop, that i need to run parallel, and am trying to use a Parallel.For loop for the first time. When I try using this code, I get that it cant be called using these arguments. The old way to write this would be:
How Im trying to do it now:Code:For m=1 to rowend 'extra cpde Next
I dont need to return anything to the for loop, Im just trying to iterate m, running in parallel. Where am I going wrong?Code:Dim m as Integer = 0 Parallel.For(1, rowend, Sub(m) For ... ...... ..... Next Next End Sub)




Reply With Quote