Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Variables

Status
Not open for further replies.

ProTouch

Programmer
Jul 10, 2002
10
US
I have these variables that I want to get a total from.

Bquantity1 = FormatNumber((request("txtquantityopt1")),0)
Bquantity2 = FormatNumber((request("txtquantityopt2")),0)
Bquantity3 = FormatNumber((request("txtquantityopt3")),0)

I use this to get the total

Btotal = Bquantity1 + Bquantity2 + Bquantity3

but instead of adding the numbers (1+2+3=6), I get them combined (123)

What am I doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top