CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Need Help with Adding Two Values

Print topic Send  topic

Author Message
Sherri
Posted: 10/05/2004, 10:51 AM

I need help with my code that is adding two values. Here is the code:

document.Q_PostMigrationCompleted.TotalAll.value = Q_PostMigrationCompleted.DBTotal.value+Q_PostMigrationCompleted.RemedyTotal.value;

With this input, if I enter 65 in the DBTotal field, and 2 in the RemedyTotal field, the TotalAll field comes up with a total of 652. It just appended the numbers. The total should have been 67.

Any help is greatly appreciated!
Sean

Posts: 39
Posted: 10/05/2004, 1:15 PM

Try this.

document.Q_PostMigrationCompleted.TotalAll.value = Number(Q_PostMigrationCompleted.DBTotal.value) + Number(Q_PostMigrationCompleted.RemedyTotal.value);
View profile  Send private message
Sherri
Posted: 10/06/2004, 6:05 AM

Thank you - that worked!

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.