C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Errors and Solutions » General »

GET AND SET in VB .NET


Posted Date: 26 Sep 2008    Resource Type: Errors and Solutions    Category: General
Author: mbMember Level: Bronze    
Rating: 1 out of 5Points: 5



While using Property function.

1)Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'.
2)'End' statement not valid.
3)Statement cannot appear within a method body. End of method assumed.
if the above err comes the fault in initial of Get

Like: GetGet or GetSome text
so assign like:
Dim mName As String

Public Property Name() As String
Get
Return mName
End Get
Set(ByVal value As String)
mName = value
End Set
End Property



Attachments

  • GET AND SET (21491-261036-demo.txt)
  • GET AND SET (21491-261038-demo.txt)



  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Sign In to add tags.
    Get and Set  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Type Casting Problem in C#
    Previous Resource: Cannot Implicitly Convert Type ‘x’ Into ‘y’ Error in C#
    Return to Discussion Resource Index
    Post New Resource
    Category: General


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use