Hello!
Situation:
Class Main
Dim BGW(10) as system.componentmodel.BackgrounProcess
Sub Load() handels me.load
AddHandaler BGW(0).DoWork, AddressOf BGW0_Run
AddHandaler BGW(1).DoWork, AddressOf BGW1_Run
BGW(0).RunWorkerAsync()
BGW(1).RunWorkerAsync()
RandomSub()
End Sub
Sub BGW0_Run()
RandomSub()
End Sub
Sub BGW1_Run()
RandomSub()
End Sub
Sub RandomSub()
'How to detect, is this sub powered by BackgroundWorker?
'If yes, how to tell, is sub runned by BGW(0) or BGW(1)?
'How to do this localy, so RandomSub does not accept arguments???
End Sub
End Class
Thank you for any advices!
Situation:
Class Main
Dim BGW(10) as system.componentmodel.BackgrounProcess
Sub Load() handels me.load
AddHandaler BGW(0).DoWork, AddressOf BGW0_Run
AddHandaler BGW(1).DoWork, AddressOf BGW1_Run
BGW(0).RunWorkerAsync()
BGW(1).RunWorkerAsync()
RandomSub()
End Sub
Sub BGW0_Run()
RandomSub()
End Sub
Sub BGW1_Run()
RandomSub()
End Sub
Sub RandomSub()
'How to detect, is this sub powered by BackgroundWorker?
'If yes, how to tell, is sub runned by BGW(0) or BGW(1)?
'How to do this localy, so RandomSub does not accept arguments???
End Sub
End Class
Thank you for any advices!