I have below procedure in Module1:
public sub Evaluate(Salary as double)
Dim Overtimesalary as Double
Overtimesalary = salary * 1.5
End Sub
Now, I am calling this procedure for my form click button event to calculate overtime salary and taking input value from textbox value from form, Code for that,
When I am trying to execute below code, I am getting "Compile error: Expected function or variable":
Private sub cmd_Calculate()
Dim Test as Double
test = Evaluate(txt.salary.value)
MsgBox Test
End Sub