Class modules Custom initialization Line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to pass a variable into a custom class upon Initialization, so the
initialization header would look like this:

Private Sub Class_Initialize(rcdEVM as ADODB.Recordset)

But it seems I cannot do this as I need a custom event handler. The MSDN was
a bit cryptic on how this was done, so does anyone have experience in this
matter that can help?

Thank you!
 
VB/VBA does not support such constructors.
Youi will need to write some property/method in the class which performs
this function, then call it.

NickHK
 
Yet another reason I should consider C# before coding. I was so ignorant (and
blissful) when I just knew VBA :P

Thank you.
--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top