imagesList = arguments.images, which is a string. The parameter for ValueList() has to be a query.column name and the query has to be available in the scope of the call to ValueList().
---------------------------------------- From: "Rick Faircloth" <r...@whitestonemedia.com> Sent: Friday, June 10, 2011 3:10 PM To: "cf-talk" <cf-talk@houseoffusion.com> Subject: Why would this code return this error? Hi, all... I've been trying to set up some CF/AJAX/CFC functionality and when it wasn't working as expected, re-coded to track variables through the functionality. All the variables have been showing up fine in alerts throughout. However, now at this point in the code: <cfargument name = "images" type = "string" required = "yes" /> <cfargument name = "listPosition" type = "string" required = "yes" /> <cfset imagesList = arguments.images /> <cfset imagesList = valueList(imagesList) /> <cfset image = listGetAt(imagesList, listPosition) /> I'm getting this error: The ValueList() function has an invalid parameter: imagesList. Parameter 1 of function ValueList which is now imagesList must be pointing to a valid query name. Can anyone tell from just this much code what my problem is? Why "imagesList" isn't being accepted as a valid parameter or valid query? Thanks! Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345150 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm