[AccessD] ParamArray problem

John W. Colby jwcolby at colbyconsulting.com
Wed Mar 10 22:43:29 CST 2004


I am doing an init() method of a class that looks like:

Public Sub Init(ByRef robjParent As Object, ParamArray lDepObjsArr() As
Variant)

where robjParent = a pointer to the parent class (ME)

and ParamArray lDepObjsArr() As Variant MAY BE an array of dependent object
classes but specifically at the moment isn't being passed anything.  I.e.
the calling function looks like

MyClass.Init me

I am passing in a pointer to self in the first parameter and nothing at all
for the array.

Since it is an array that can contain variable number of objects I expected
it to allow this.  However when I get inside the init() the lDepObjsArr has
something in it.  That something is NOT a class, and I can't debug.print the
value...

What the heck is going on here?  Can I not do this (not pass anything to a
paramarray?

John W. Colby
www.ColbyConsulting.com





More information about the AccessD mailing list