> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 20, 2008 11:33 AM > To: CF-Talk > Subject: Need to pass multiple value from a CFC - stuck > > All, > > To see the cfdump, first go to ... > http://209.41.164.253/store_finder/application/zip.cfm > or see cfdump below > > I need to pass the zipcodes info from a cfc to another query that looks > up stores that contain these > zip codes. I need multiple value returned from the CFC that creates > this result. How do I do this? > When I try to return the cfc values for zip I get a single zip code. > How do I get all the zip? I'm not > good at Structs or Arrays.
Not to put too fine a point on it... but get good at them. ;^) The complex data types (structs, arrays, queries) are exactly how you'd accomplish this goal. They're job in life is to create a single reference/handle/ variable that logically contain multiple values. I've a guide that covers "CFML Variables" in some detail that you might find useful in beginning to learn about this stuff here: http://www.depressedpress.com/Content/Development/ColdFusion/Guides/Variable s/Index.cfm It's old (it was written when CFMX first came out) but I think it's still valid (neither CF 7 or CF 8 changed or added to the core language all that much). I should set aside some time to update it... In any case the basics it covers will still serve you very well. Definitely post back with any questions you have! Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303829 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4