Hi CM,
What are you trying to do?
MakeInParam is a method, not a class, so you cannot create an instance of
it... Are you trying to call that method?
If so, all you need is:
data.MakeInParam(...)
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
" System.Reflection Master "
==== Converting to 2002 ====
Remove inline declarations
"CM" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there:
> I created an ASP.Net project. I added and implemented a component
> DataAcess.vb and there are several methods such as
>
> Namespace ABC.Components
> Public Class DBAccess
> Public Function MakeInParam(...) As SqlParameter
>
> ...
>
> End Function
>
> Public Sub Open()
>
>
> ...
>
> End Sub
>
> End Class
>
> End Namespace
>
> In another component (Login.vb) in the same namespace, I have included the
> namespace ABC.Components, and the "New" key word is followed with a
dropdown
> list that contains the class name 'DBAccess', But non of these methods
such
> as DBAccess.MakeInParam is shown in the other component such as Login.vb
>
> Dim data As New DBAccess 'this line is okay
>
> 'this line causes a syntax error: type DBAccess.makeinparam is not
defined:
>
> Dim data As New DBAccess.makeinparam
>
>
>
> What's wrong? How to fix this problem?
>
> Thanks!
>
> CM
>
>
|