Click to See Complete Forum and Search --> : Problems with properties, again


Steve25
June 13th, 2009, 12:46 PM
I still can't seem to get to grips with properties. I understand other OOP things like classes and methods etc and i understand structures as well but i just don't get properties. I'm talking about the bits of code with the following syntax:

Public Property propertyName() As String
Get

End Get
Set

End Set
End Property

I've tried them out on a number of different examples but i don't see how they are used, what they are useful for and when you should use them. Perhaps i'm being stupid? Could someone perhaps explain to me what you use them for or just a bit more information? Sources on the web seem to talk about the same thing.

dglienna
June 13th, 2009, 10:58 PM
Take a look at this link (http://code.msdn.microsoft.com/vbsamples/)

and play around with the samples. step thru them one line at a time