Hello friends,
While passing data to the function we use “datatopass(array)“ from the main program and on the function part, sub datatoget( Byval array() as string).
Now I want to do same with threading too.. Before starting the thread, I want to pass data (i.e., datatopass(array)) and compute the data that I passed in new thread.
I used this syntax in main program but displays error;
Dim thr As Thread
Thr = New Thread(AddressOf datatoget(array))
In function;
Sub datatoget(Byval array() as string)
Thank you
While passing data to the function we use “datatopass(array)“ from the main program and on the function part, sub datatoget( Byval array() as string).
Now I want to do same with threading too.. Before starting the thread, I want to pass data (i.e., datatopass(array)) and compute the data that I passed in new thread.
I used this syntax in main program but displays error;
Dim thr As Thread
Thr = New Thread(AddressOf datatoget(array))
In function;
Sub datatoget(Byval array() as string)
Thank you