Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

[RESOLVED] Property Set? Get?

$
0
0
Hey,

So I should know what this means but I am very unsure right now.

Code:

    Private _SetHum As Double
    Public Property SetHum() As Double
        Get
            Return _SetHum
        End Get
        Set(ByVal value As Double)
            _SetHum = value
        End Set
    End Property

This is a basic get and set property
My question thoug is: Am I able to assign this to a variable later if I want to know whats stored in it? like so

Code:

Dim h as double = SetHum
Would this return the variable stored in _SetHum?

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>