I try to make a simple .vb like this
create three textboxes named txtA, txtB and txtAplusB
then if you click a button named cmdPlus then the text in txtAplusB will include the texts in txtA and txtB
Here is the code for form
Private Sub cmdPlus_Click()
Call Calculate
End Sub
About Caculate() function, I create a .bas file and put code in it
Public Function Calculate() As String
txtAplusB.Text = txtA.Text + txtB.Text
End Function
It said error, txtA (txtB) is not defined ???
How can I make it run ?
Thanks :)