G
Guest
I am using function like so:
Public Class Calculation
'add function
Public Function add(ByVal num1, ByVal num2)
Return (num1 + num2)
End Function
'subtract function
Public Function subtract(ByVal num1, ByVal num2)
Return (num1 - num2)
End Function
'divide function
Public Function Divide(ByVal num1, ByVal num2)
Return (num1 / num2)
End Function
'Multiply function
Public Function multiply(ByVal num1, ByVal num2)
Return (num1 * num2)
End Function
End Class
How do I display the problem to a label and get the correct answer, by the
way the user has a txtbox for her answer
Public Class Calculation
'add function
Public Function add(ByVal num1, ByVal num2)
Return (num1 + num2)
End Function
'subtract function
Public Function subtract(ByVal num1, ByVal num2)
Return (num1 - num2)
End Function
'divide function
Public Function Divide(ByVal num1, ByVal num2)
Return (num1 / num2)
End Function
'Multiply function
Public Function multiply(ByVal num1, ByVal num2)
Return (num1 * num2)
End Function
End Class
How do I display the problem to a label and get the correct answer, by the
way the user has a txtbox for her answer