Unfortunately, that's just life... Certain tags and functions require that a variable be passed by name (<cfloop query=>, <cfoutput query=>, isdefined() for example) while others require that they be passed by reference (<cfdump var=>, <cfloop collection=>, etc.). Remember #ParameterExists()#? Did the same thing as isDefined() only you passed object references rather than names...
~Simon Simon Horwith Macromedia Certified Instructor Certified Advanced ColdFusion MX Developer Certified Flash MX Developer CFDJList - List Administrator Fig Leaf Software 1400 16th St NW, # 220 Washington DC 20036 202.797.6570 (direct line) www.figleaf.com -----Original Message----- From: Brad Roberts [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 16:29 To: CF-Talk Subject: RE: Structure Loop I've always thought that was strange... <cfloop query="qFoo".... no pound signs.. maybe I'm just missing something, but it doesn't seem consistent. -Brad > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED] > Sent: Monday, March 31, 2003 4:23 PM > To: CF-Talk > Subject: RE: Structure Loop > > > You forgot the # signs. > > collection="#foo#" > > ====================================================================== > == > === > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > (www.mindseye.com) > Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) > > Email : [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: Jeff Chastain [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 31, 2003 3:22 PM > > To: CF-Talk > > Subject: Structure Loop > > > > > > Before I go chasing ghosts, I want to make sure I am remembering > > this correctly. If I have the following code and the structure > > exists - even if it is empty - I should not get an error, right? > > > > <cfloop collection="dGadgetSettings" item="item"> > > <tr> > > <td class="gContentSection">#HTMLEditFormat(item)#</td> > > </tr> > > </cfloop> > > > > I have done a <cfdump on the structure and it says I have an empty > > structure. However, I get an error message when I attempt to run > > this code stating "Invalid collection 'dGadgetSettings' - must be a > > valid struct ...." > > > > I just want to make sure I can loop this way over an empty (no keys > > or > > values) structure before I start digging to see what else > > might be wrong. > > > > Thanks > > -- Jeff > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

