Hi Robert,
 I believe <object>.GetType() is what you need.

<ms-help://MS.NETFrameworkSDK/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm>
Robert, said:

Robert> In our existing VB 6 application we have a component that has the following
Robert> signature

Robert> Public Sub AddObject(ByVal Object As Object)

Robert> within this we do the following to determine what type of object were
Robert> actually dealing with - the object is a normal vb class module (within the
Robert> same project)

Robert> Select Case TypeName(Object)
Robert>         Case "ExtractFile"
Robert>                 Call XYZ ....
Robert> End Select


Robert> will this work in .Net? and what's the equivalent.

Robert> Regards,
Robert> Robert Rolls

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to