You don't need to have a function inside your class. You can have a function outside your class, like this:
Function Check(valueToCheck As Integer) As Boolean
Return valueToCheck > 0
End Function
Use the above method like this:
dim myT as new T
myT.a=9
debug.writeline (Check(myT.a))
myT.a=-1
debug.writeline (Check(myT.a))
myT.a=0
debug.writeline (Check(myT.a))
You
can define the
Check
method in your class (and then you have to all it like
myT.Check(myT.a)
), but there is not really a reason for doing that (unless you really need it for a purpose, but there doesn't come one to my mind immediately).