I have an app that's doing lots of time checks and looping through datatables etc checking for certain values at certain times etc.
The end result is that I have a list(of string) that contains the names of the "schedules" that need running at a particular time. Those names correspond to the names of a set of background workers.
I'm wondering if there is any way I can loop through that list and, using the backgroundworker name which is a string variable, call the corresponding background workers RunWorkerAsync method?
The background workers are already declared before runtime, and their names are static - matched by the names in the list.
I've been looking at the CallByName function, but cant find any usage examples of documentation that show it used in this way, so i'm not sure if I'm heading down a dead end there.
For Each schedule In run_these_schedules
CallByName(schedule, BackgroundWorker.RunWorkerAsync)
Next
Any help appreciated in advanced!