vb .net class

Redwoodpec

Newcomer
Joined
Oct 21, 2003
Messages
3
Im New to VB .Net and when I create a class and try to use it I keep getting type expected.

example

Class Rec

Public Name as string
Public Addr as string
Public Acct as Integer

End class

Then create the DLL for the above class
and add it as a resource to my project

When I go to use it in my project I get a compile error Type Expected.

Dim Erec as New Rec

or

Dim Erec as Rec

Erec = new Rec

still get Type Expected error

If I just code the class in my project it works but I want to use this class in other projects as well.

This seems simple to me but I cant seem to figure out what I'm doing wrong.
Any insight to what I could do would be great.
 
Back
Top