Hi Michael, I just use structures as such.
<cfset var ReturnVariable=StructNew()> <Cfset ReturnVariable.codevalid = true> <cfset ReturnVariable.fee = "#calculatedfee#"> <cfset ReturnVariable.startdate = "#lookupdate#"> <cfreturn ReturnVariable> Hope that helps. Blake Foss -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Kear Sent: Tuesday, 16 December 2003 8:27 PM To: CFAussie Mailing List Subject: [cfaussie] Returning several variables from a CFC ? Can you have a CFC return several variables? If so, how? Here's the situation ... I have a CFC that validates a code, looks up some values in a table and returns them. I want to be able to return a variable saying "yes, it's valid" and another with the fee, another with the start date. Can I have the CFC include the following: <Cfset codevalid = true> <cfset fee = "#calculatedfee#"> <cfset startdate = "#lookupdate#"> <cfreturn codevalid> <cfreturn fee> <cfreturn startdate> Or do I have to put all the values into a struct and return the struct? Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
