J
Joe Delphi
Hi,
I need help passing arrays to a subroutine. When my subroutine looks like
this:
Public Sub CalcIndNetSalesRevenue(ByRef rst As Recordset, ParamArray
Array1() As Variant)
everything is OK.
But I need to pass two arrays to the subroutine, so when I attempt to pass
Array2 by altering my subroutine to look like this:
Public Sub CalcIndNetSalesRevenue(ByRef rst As Recordset, ParamArray
Array1() As Variant, ParamArray Array2() As Variant)
I get an error message. Is there a limitation on the number of ParamArrays
that can be passed to a subroutine?
If yes, does anyone know how I can pass more than one array to my
subroutine?
Any help appreciated.
JD
I need help passing arrays to a subroutine. When my subroutine looks like
this:
Public Sub CalcIndNetSalesRevenue(ByRef rst As Recordset, ParamArray
Array1() As Variant)
everything is OK.
But I need to pass two arrays to the subroutine, so when I attempt to pass
Array2 by altering my subroutine to look like this:
Public Sub CalcIndNetSalesRevenue(ByRef rst As Recordset, ParamArray
Array1() As Variant, ParamArray Array2() As Variant)
I get an error message. Is there a limitation on the number of ParamArrays
that can be passed to a subroutine?
If yes, does anyone know how I can pass more than one array to my
subroutine?
Any help appreciated.
JD