I have 9 Textboxes which hold numbers.
I want to add the 9 numbers together and put the total in a 10th Testbox
As far as I know "+" only appends when theres 2 strings.
The CInt should take care of that, but for some reason its appending all 9 numbers togther.
Anyone have any ideas ?
I want to add the 9 numbers together and put the total in a 10th Testbox
Visual Basic:
Dim R1 As Long
R1 = Trim(CInt(Trim(txtH1R.Text))) + Trim(CInt(Trim(txtH2R.Text))) + Trim(CInt(Trim(txtH3R.Text))) + Trim(CInt(Trim(txtH4R.Text))) + Trim(CInt(Trim(txtH5R.Text))) + Trim(CInt(Trim(txtH6R.Text))) + Trim(CInt(Trim(txtH7R.Text))) + Trim(CInt(Trim(txtH8R.Text))) + Trim(CInt(Trim(txtH9R.Text)))
txtTotal.Text = Trim(CStr(R1))
As far as I know "+" only appends when theres 2 strings.
The CInt should take care of that, but for some reason its appending all 9 numbers togther.
Anyone have any ideas ?