I agree with Mike's suggestion.  Your descr variables might be
overlapping there.

If that doesn't work, can you post a complete working example of the
error that builds the struct as well?

Also, you can try/catch the error and dump out the current value of
arguments.stArg[i] at the point of the exception.

~Brad


-------- Original Message --------
Subject: Re: Real stumper: You have attempted to dereference a scalar
variable of type class java.lang.String as a structure with members
From: Mike Chabot <[email protected]>
Date: Tue, November 03, 2009 9:44 pm
To: cf-talk <[email protected]>


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>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:327982
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