Redwoodpec Posted October 21, 2003 Posted October 21, 2003 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. Quote
Moderators Robby Posted October 21, 2003 Moderators Posted October 21, 2003 Did you IMPORTS your class at the top of the client code? Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.