As I understand
Will execute the 'RoutineToRun' when the handler is triggered, What I would like to do is pass a param with the RoutinrToRun, so effectively in theory
This of course does not work, however it demonstartes what I am trying to achieve.
In this way, I can have one RoutineToRun (as they are all very similar) with the bits that are different parameterised.
Code:
AddHandler xxx, AddressOf RoutineToRun
Code:
AddHandler XXX, AddressOf RoutineToRun("Param1")
AddHandler YYY, AddressOf RoutineToRun("Param2")
In this way, I can have one RoutineToRun (as they are all very similar) with the bits that are different parameterised.