I'm working on a fairly large application - that I didn't write - and
some of the database tables have fields named "url".
Which makes it really difficult to reference the url scope inside a query loop.
<cfquery name="foo">select * from mytable</cfquery><!--- columns
returned include "url" --->
<cfloop query="foo">
<cfif isDefined("url.somevar")> ... </cfif>
</cfloop>
That will cause a "You are attempging to dereference a scalar variable
as a structure with elements..." error.
ULTIMATELY the solution is to change the field name from "url" to
something other than "url" and then change all the code that
references that.
For now .. is there any other way to reference the url Scope? Like is
the url scope inside the variables scope or is it just a top level
scope?
Rick
--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309209
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4