Hello,
I am having trouble passing a control array into a sub procedure contained in a module. I am getting a combile error 'ByRef argument type mismatch error.
I have code similar to below.
In the main form:
DIM modmanfields(7) as Control
Call subprocedure(arg1,arg2,arg3) 'where arg2 is the array being passed into the subprocedure.
in the subprocedure module:
the subprocedure is defined as
Public sub(arg1, arg2 as Containedcontrols, arg3)
Appreciate any comments.
I am having trouble passing a control array into a sub procedure contained in a module. I am getting a combile error 'ByRef argument type mismatch error.
I have code similar to below.
In the main form:
DIM modmanfields(7) as Control
Call subprocedure(arg1,arg2,arg3) 'where arg2 is the array being passed into the subprocedure.
in the subprocedure module:
the subprocedure is defined as
Public sub(arg1, arg2 as Containedcontrols, arg3)
Appreciate any comments.