Notifications
Clear all

[Closed] Passing External Variables to Background Worker

Greetings

   Just a quickie... I'm trying to pass a value  into a function i want to run in an Asynchronous background thread, but can't quite seem to get the syntax correct.     Any Ideas, or is this even possible?  
   
   For Example:
 
    fn toDo Index=
         (
           blah = thingo[Index].value 	  
          )
       				
         dotNet.addEventHandler backgroundThread1 "DoWork" toDo
  
   
   Rather then Index being the yummy Integer I would expect, it is of the following type, which I would guess is one of the two possible arguments for the Evt Handler?

dotNetObject:System.ComponentModel.DoWorkEventArgs

   Thanks for the help
   
   Mikie