midnightservice
September 13th, 2001, 11:04 AM
here is my code
Sub SubComputeArea_Click()
Dim sum, sum1, sum2
sum1 = Text1: sum2 = Text2
sum = (sum1 + sum2) ' add area of rectangle.
Text3 = sum ' Print Area to Debug window.
End Sub
if change the + to *,/,- it works fine but as a + it returns the 2 numbers joined like this 5+5=55 or 2+2=22 not 5+5=10 what is worng here....
thanx in advance
midnightservice
Sub SubComputeArea_Click()
Dim sum, sum1, sum2
sum1 = Text1: sum2 = Text2
sum = (sum1 + sum2) ' add area of rectangle.
Text3 = sum ' Print Area to Debug window.
End Sub
if change the + to *,/,- it works fine but as a + it returns the 2 numbers joined like this 5+5=55 or 2+2=22 not 5+5=10 what is worng here....
thanx in advance
midnightservice