Forgive my ignorance on this one as I am trying to use a Singleton class. I
need to use this to have one instance of my Class running and I think I
understand how to do this. My question however is can a singleton class have
a number of paramterised constructors enabling me to pass in parameters or
not?
I am trying to use the following to send in a parmeter to a constructor, but
getting an error with it. I have a feeling that I am not able to do this. Is
there any other way that I can do this.
Dim sPatName As String = "Green"
Dim EMP As CEmPacc = CEmPacc.Create( sPatName)
Class myApp.CEmPacc cannot be indexed because it has no default property
Many thanks
Paul Bromley