PDA

Click to See Complete Forum and Search --> : Adding the values of two textboxes


jrap
Jan 12th, 2000, 10:41 PM
HI,

How I have two text boxes that contain numbers. Is it possible to add the two text boxes together?
somthing like
var= text1.text + text2.text
but that doesn't work.

Thanks!

Joacim Andersson
Jan 12th, 2000, 10:43 PM
You must convert the text to values:
var = Val(Text1.Text) + Val(Text2.Text)

Good luck!

------------------
Joacim Andersson
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)

jrap
Jan 12th, 2000, 10:48 PM
Thanks for the quick reply, that worked great!