Replace that cfset line with the following to see if it throws the same error: <cfset variables.x = arguments.stArg[i].descr>
-Mike Chabot On Tue, Nov 3, 2009 at 10:24 PM, Victor Moore <[email protected]> wrote: > > Hi, > > I'm getting a real nasty error and not sure how to fix it. > > This is the code: > <cfloop collection="#arguments.stArg#" item="i"> > <cfset descr = arguments.stArg[i].descr> <!--- gives You have > attempted to dereference a scalar variable of type class > java.lang.String as a structure with members. ---> > but > <cfoutput>#arguments.stArg[i].descr#</cfoutput> isOK > </cfloop> > > The struct is created with structNew () and I can dump it and > everything looks fine, but when I'm trying to access it I'm getting > the error. > > What gives? > Server CF 8.01. > > Any help would be greatly appreciated! > > Thanks in advance. > Victor > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327981 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

