Hi
I have written code as below (well copied from an example)
(the Match_Thread_Class bit is just so I can pass a few parameters to the thread/function)
I'm trying to make the program run some code after all the threads are finished, but I am unsure of how to.
I have searched quite a bit for a solution but I cannot find one, or cannot understand one to fit my needs
please could you help me?
Many thanks Gary
I have written code as below (well copied from an example)
VB.NET:
For Each DataRow In dt_Coupon.Rows
For Each DataRow2 In dt_Markets.Rows
Dim oFill_ThreadX As New Match_Thread_Class
Dim ThreadX As New Thread(AddressOf oFill_ThreadX.Get_Match)
oFill_ThreadX.Match_Title = DataRow(0)
ThreadX.Start()
Next
Next
(the Match_Thread_Class bit is just so I can pass a few parameters to the thread/function)
I'm trying to make the program run some code after all the threads are finished, but I am unsure of how to.
I have searched quite a bit for a solution but I cannot find one, or cannot understand one to fit my needs
please could you help me?
Many thanks Gary