What's with the "DSN" line? Kind of an arbitrary attribute... That's not
part of the function tags attributes... Should the "dsn" var be part of the
argumentcollection?

I would think it should be something like

<cfset form.dsn=application.dsn>

<cffunction argumentcollection="#form#" .... >


-Mark


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-----Original Message-----
From: Rick Faircloth [mailto:[email protected]] 
Sent: Friday, March 06, 2009 12:29 PM
To: cf-talk
Subject: I give...anything inherently wrong with this code that would cause
this error?


Here's the error from CF:

 

"This expression must have a constant value."

 

The compiler was processing:

-          A cffunction tag beginning on line 72, column 10.

The error occurred in
E:\Inetpub\webroot\wsm-dev\jQuery\ajax_file_upload_two\form_processing.cfc,
line 79.

(Line 79 is:  returnType = "struct")  If I take out that line, then the
error just references the line before it:  access = "remote".

 

Without going into a thousand lines of code upfront, I was wondering if
anything was wrong with this code

up to this point.  I've never gotten this error before (but, then again,
I've never tried to do some of the things

I'm doing with this, either.)

 

Thanks,

 

Rick

 

 

<cffunction   name                                   =   "fnProcessForm"

                          displayname                      =
"fnProcessForm"

                          argumentCollection       =  "#form#"

                          dsn                                        =
"#application.dsn#"

                          hint                                       =
"Processes Submitted Form"

                          output                                 =  "false"

                          access                                  =
"remote"

                          returnType                        =  "struct">

 


                          <cfargument     name = "dsn"     type = "string"
required = "yes">

 


                          <cfset valueStruct  =  structNew()>

 

                         <cfset arrFiles_200 =  [] />

                         <cfset arrFiles_500 =  [] />

 

----------------------------------------------------------------------------
---------------------------------------------------------

"A government big enough to give you everything you want is big enough to
take away everything you have."

 - Thomas Jefferson

 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to