A
Academia
I have a procedure and in the procedure I use "Me"
Since I have multiple copies of this procedure in various places I place it
into a library as a Shared Sub.
The problem is in the library I can't use Me so I add an argument like:
( ByVal c as Control, ...)
and call it with Me as the parameter:
Library.DoSub(Me, ...)
Is there a another way?
Can't the procedure figure out who c is from the stack some how?
I've been looking at StackTrace but can't see the solution there.
Can you suggest how this can be done?
Thanks in advance
Since I have multiple copies of this procedure in various places I place it
into a library as a Shared Sub.
The problem is in the library I can't use Me so I add an argument like:
( ByVal c as Control, ...)
and call it with Me as the parameter:
Library.DoSub(Me, ...)
Is there a another way?
Can't the procedure figure out who c is from the stack some how?
I've been looking at StackTrace but can't see the solution there.
Can you suggest how this can be done?
Thanks in advance