none
Expression is not a method class RRS feed

  • Question

  • Okay I have searched but i have not encountered anyone who has this error please help me,

    Here is my code error is in the title,

    'private data members
        Private CommercialAcctName As String
    
        Property CompanyName() As String
            Get
    
                CommercialAcctName (here is the error)
    
            End Get
            Set(ByVal Value As String)
                CommercialAcctName = Value
            End Set
        End Property

    Please help

    Wednesday, March 19, 2014 12:24 AM

Answers

  • Hi. You are missing the Return keyword on the line that throw the error (see below).

        Private CommercialAcctName As String
    
        Property CompanyName() As String
            Get
    
                Return CommercialAcctName
    
            End Get
            Set(ByVal Value As String)
                CommercialAcctName = Value
            End Set
        End Property

    Wednesday, March 19, 2014 12:51 AM