G
Guest
Hi,
To start a new thread of a sub routine I use:
'///////////
Dim t as Thread = New Thread (AddressOf MySub)
t.Start
'\\\\\\\\\\\
How do I start a thread of a sub routine that takes parameters?
For example:
'////////////
Sub MySub (filePath as String)
if File.Exists(filePath) Then File.Delete(filePath)
End Sub
'
'
Dim t as Thread = New Thread (AddressOf MySub("C:\test.txt"))
t.Start
'
'\\\\\\\\\\\\\\\
To start a new thread of a sub routine I use:
'///////////
Dim t as Thread = New Thread (AddressOf MySub)
t.Start
'\\\\\\\\\\\
How do I start a thread of a sub routine that takes parameters?
For example:
'////////////
Sub MySub (filePath as String)
if File.Exists(filePath) Then File.Delete(filePath)
End Sub
'
'
Dim t as Thread = New Thread (AddressOf MySub("C:\test.txt"))
t.Start
'
'\\\\\\\\\\\\\\\