Joel Whitehouse wrote:
stand__sure wrote: since the ctor is marked private, you really have no options -- are
there any public constructors? also, is there another object that
returns this type of object?
No other objects return this kind of object. I'm not sure if there are
any public constructors, but if there were, wouldn't the New keyword
specify them by default?
When you say eg
Dim myX As New X
, you are saying you want to use that constructor of X that takes no
parameters. For this particular class, that constructor is marked
Private, so you can't use it. It may happen that the class has other
constructors - for example, it might have a
Public Sub New(s As String)
in which case you would be allowed to create one with
Dim myX As New X("some string")
The compiles works out which constructor to use by looking at the
arguments you supply, just as with any over overloaded procedure.
In this case since you say it is authored by you, you just need to
check you have set the accessors on your constructors correctly.
--
Larry Lard
Replies to group please