Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Threading Basic

Status
Not open for further replies.

hariram55

Programmer
Jul 28, 2006
10
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top