class TestClass:
define public property m_Total as integer no-undo
get.
set.
define public property Totals as integer no-undo
get:
if m_Total < 0 then
return 0.
else
return m_Total.
end.
end get.
set (newValue as integer):
m_Total = newValue.
end set.
end class.
However, note that set works correctly when the set has a single statement, like this:
For example,
However, note that set works correctly when the set has a single statement, like this: