Home All Groups Group Topic Archive Search About
Author
25 Nov 2006 5:07 PM
Franky
I have a project containing a class and it works OK.

However, when I copy the class and paste it into my library I get and error.

Do you know what might cause that?

THANKS

Something = New Collection()

produces:

Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in this
context because it is 'Private'. C:\Documents and Settings\...LibraryVb

Author
25 Nov 2006 7:39 PM
OHM
make CollectionClass.new Public

Public Sub New


Show quoteHide quote
" Franky" <frankyNOSPAM@a-znet.com> wrote in message
news:OlRB3QLEHHA.4060@TK2MSFTNGP03.phx.gbl...
>I have a project containing a class and it works OK.
>
> However, when I copy the class and paste it into my library I get and
> error.
>
> Do you know what might cause that?
>
> THANKS
>
> Something = New Collection()
>
> produces:
>
> Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in
> this context because it is 'Private'. C:\Documents and
> Settings\...LibraryVb
>
>
>
>
>
>
>
Author
25 Nov 2006 7:55 PM
Franky
It would have been smart if I included:

Dim Something As MSScriptControl.ScriptControlClass

thanks for replying



Show quoteHide quote
"OHM" <lkjhlkj> wrote in message
news:Op8F3lMEHHA.4112@TK2MSFTNGP03.phx.gbl...
> make CollectionClass.new Public
>
> Public Sub New
>
>
> " Franky" <frankyNOSPAM@a-znet.com> wrote in message
> news:OlRB3QLEHHA.4060@TK2MSFTNGP03.phx.gbl...
>>I have a project containing a class and it works OK.
>>
>> However, when I copy the class and paste it into my library I get and
>> error.
>>
>> Do you know what might cause that?
>>
>> THANKS
>>
>> Something = New Collection()
>>
>> produces:
>>
>> Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in
>> this context because it is 'Private'. C:\Documents and
>> Settings\...LibraryVb
>>
>>
>>
>>
>>
>>
>>
>
>
Author
25 Nov 2006 8:19 PM
Franky
Try again to get this right!

I have a project containing a class and it works OK.

When I copy the class and paste it into my library I get an error.

Do you know what might cause it?

THANKS


Private Something   As Collection

Something  = New Microsoft.VisualBasic.Collection()


produces:

Error 4 'WIALib.CollectionClass.Private Sub New()' is not accessible in
this context because it is 'Private'. C:\Documents and
Settings\...LibraryVb