Kreshnike Rahmani

Kreshnike Rahmani

  • NA
  • 14
  • 16.4k

Properties in vb.net, need help

Feb 26 2013 9:59 AM
in a class, i wrote this code 

 Public Property Changeaheight() As Integer


        Get
            Return newValue
        End Get

        Set(ByVal value As Integer)

            newValue = value

        End Set
    End Property

and int shows me an error int the newValue parameter. this kind of error: 
newValue' is not declared. It may be inaccessible due to its protection level


Answers (2)