I don't get it. This is the description of CallSub2:
CallSub2(Component As Object, Sub As String, Argument As Object) As Object
As I understood it, the arguments are:
Component: The component in which the sub I want to call is.
Sub: The sub to call.
Argument: The argument to send to the sub.
SCR is not a panel, it's a class, which, among other things, can hold a reference to a panel.
Let's just go back one step. This is what I want to accomplish:
I have an object. It can be one of several classes, but I know they all have an Initialize, that takes a panel as argument. I want to call that initialize, without having to know exactly which class it is. How do I do that?