Scratch that. The code is good, I just wasn't passing
variables to the code correctly.
Opps.
Thanks
> All,
>
> This simple process worked for me 10 minutes ago and now
> it's throwing an error message ... I just can't see the
> problem. I need a second pair of fresh eyes.
>
> Thanks
>
> ***THE ERROR:***
> Error Diagnostic Information
> An error occurred while evaluating the expression:
> TOTAL1 = (#q1_qnty_1A# + #q1_qnty_2A# + #q1_qnty_3A# +
> #q1_qnty_4A# + #q1_qnty_5A#)
>
> Error near line 220, column 7.
> ----------------------------------------------
> Cannot convert to number.
>
> Please, check the ColdFusion manual for the allowed
> conversions between data types
>
> The error occurred while processing an element with a
> general identifier of (CFSET), occupying document
> position (220:1) to (220:91).
>
>
> ***THE CODE:***
> <cfset q1_qnty_1A = "#FORM.srf_q1_qnty_1A#">
>
> <CFIF ISDEFINED ("FORM.srf_q1_qnty_2A")>
> <cfset q1_qnty_2A = #FORM.srf_q1_qnty_2A#>
> <cfelse>
> <cfset q1_qnty_2A = "0">
> </CFIF>
>
> <CFIF ISDEFINED ("FORM.srf_q1_qnty_3A")>
> <CFSET q1_qnty_3A = #FORM.srf_q1_qnty_3A#>
> <cfelse>
> <cfset q1_qnty_3A = "0">
> </CFIF>
>
> <CFIF ISDEFINED ("FORM.srf_q1_qnty_4A")>
> <CFSET q1_qnty_4A = #FORM.srf_q1_qnty_4A#>
> <cfelse>
> <CFSET q1_qnty_4A = "0">
> </CFIF>
> <CFIF ISDEFINED ("FORM.srf_q1_qnty_5A")>
> <CFSET q1_qnty_5A = #FORM.srf_q1_qnty_5A#>
> <cfelse>
> <CFSET q1_qnty_5A = "0">
> </CFIF>
> <--- AT LINE 220 -->
> <CFSET TOTAL1 = (#q1_qnty_1A# + #q1_qnty_2A# +
> #q1_qnty_3A# + #q1_qnty_4A# + #q1_qnty_5A#)>
>
>
>
________________________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists