This isn't any major problem, I'm just wondering if someone can explain this a little clearer than I understand it...

I have compiled an ActiveX dll that has a couple functions for calculating Time statistics. The class is called TimeStats. When I create an object of that class I have to use


Dim ts as Object
set ts = new TimeStats




Everything works fine from there. I'm just wondering why I can't use..


Dim ts as TimeStats




..because this is legal syntax but gives a run-time error 91 (object not set). Like i said, my code is working and everyone is happy, but can someone explain why I can't dimension the object directly? Thank you!!

Jeff