NEED HELP ASAP!

by redd - 01-12-2015, 05:51 PM
Active Member
Posts:
387
Joined:
Aug 2015
Likes:
6
Credits:
8
Reputation:
3
2 Years of Service
#1
OP
Posted: 01-12-2015, 05:51 PM
Well i set all the threads now for my vb app but now i need a method to send the info to its given threads anyone know how to do this? we struggeling with this issue

I want to set 1 thead for each item and i need a method to pass the info to its given thread

I need to know how to pass a parameter with each items thread

The info i want to send is A string that contains a sentence u know how to do this?
Active Member
Supreme
Posts:
271
Joined:
Oct 2015
Likes:
11
Credits:
599
Reputation:
25
2 Years of Service
#2
Posted: 02-12-2015, 12:09 AM
Uhh, well, lets see. You've provided little to no context on what the problem is as you're mismatching terminology. I would recommend you start by posting the code that you already have done and from there we can help you. If you're just talking about passing a variable to a sub or function, this is done like:

Sub Test(ByVal abc As String)
End sub

Or if you're really handling threads, I really recommend hitting the books more as I highly doubt you know how to properly handle them. But you could pass a variable to a new thread like so:

Dim NewThread = New Thread(Sub() TestThread(abc, 123))
Junior Member
Posts:
57
Joined:
Jan 2016
Likes:
5
Credits:
32
Reputation:
-4
1 Year of Service
#3
Posted: 04-01-2016, 05:17 AM
(02-12-2015, 12:09 AM)Killpot Wrote: Uhh, well, lets see. You've provided little to no context on what the problem is as you're mismatching terminology. I would recommend you start by posting the code that you already have done and from there we can help you. If you're just talking about passing a variable to a sub or function, this is done like:

Sub Test(ByVal abc As String)
End sub

Or if you're really handling threads, I really recommend hitting the books more as I highly doubt you know how to properly handle them. But you could pass a variable to a new thread like so:

Dim NewThread = New Thread(Sub() TestThread(abc, 123))

Without knowledge of mutual exclusion he'll probably run into race conditions with this advice.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)