Hello All,
I am a little new to .NET Developing, and have learned a great deal recently, but I'm stuck with something. I come from an ASP Background, so please excuse my ignorance ;-p
I'm trying to subtract 2 variables, but they don't seem to 'see' one another.
I can write the values in the page, subtracting one from another, but in the CODE BEHIND, I'm having some trouble. Mostly because I might not have a firm understanding of Private / Public / Shared Class - Declarations
I have 3 Variable Declared, so let me explain.
Public something1 As Integer = 0
Public something2 As Integer = 0
Public something3 As Integer = something1 - something2
Private Sub 1()
Do Something
something1 = myResults2
End Sub
Private Sub 2()
Do Something
something2 = myResults2
End Sub
Something3 isn't working. It's not Subtracting the values, I get a 0.
I'm used to writing INLINE VBScript on ASP Pages, so it just works. What am I missing here?