Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...