OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Error trying to Multiply in ASP

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> Error trying to Multiply in ASP
Page: [1]
 
chadb

 

Posts: 501
From: Kansas
Status: offline

 
Error trying to Multiply in ASP - 7/21/2003 11:10:24   
I am trying to multiply 2 variables and I am getting this error:
Type mismatch: ' [string: " " ]'
/so/SALES ORDER FORM1.asp, line 54

Here is the code:
ea = Request.Form(" ea1" )
total = Request.Form(" Total1" )
qty=Request.Form(" Qty1" )
disc = Request.Form(" Disc1" )
Total1= ea*qty THIS IS LINE 54

Thanks so much for the help!!
Doug G

 

Posts: 1191
Joined: 12/29/2001
From: SoCal
Status: offline

 
RE: Error trying to Multiply in ASP - 7/21/2003 12:00:48   
More than likely one of the form variables is empty.

You can force the passed data to be a numeric value using Cint, Clng, CDbl or one of the other datatype conversion functions in VBScript.

You could add a response.write " ea: " & ea & " qty: " & qty to verify what data you really are working with. Insert this line just above the line that does the calculation.

_____________________________

======
Doug G
======

(in reply to chadb)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> Error trying to Multiply in ASP
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts