User Profile
Collapse
-
To: HTH, thank you provided the information that I needed.... -
Here is the code from the Sub on the main form,
Private Sub Command2_Click( )
Dim A, B, x
Dim MyAdd
A = 2
B = 2
Label11.Caption = Format(MyAdd, "##0.0")
It will not return a value to label 11....Leave a comment:
-
Thank you for the help. How do I call MyAdd in the VB5 form?...Leave a comment:
-
creating a function in a module then call from a form
Hello,
I am trying to create a math function in a module and then call the function from a VB form. For some reason I get errors each time I try.
on the VB Form
A = 1
B = 2
how do I call the functin below?
Module
Function Add (A,B)
Add = A + B
End Function
No activity results to display
Show More
Leave a comment: