Why are you calling the method from the
set
clause? When you say
propertyx = 1
in your code,
propertyx
should be = 1, not a calculated value.
You should actually do this:
nrZileLucratoare = calcZileLucratoare()
where the set clause looks like this:
Set(ByVal value As Decimal)
m_nrZileLucratoare = value
End Set