collection="#dGadgetSettings#" ;-) ----- Original Message ----- From: "Jeff Chastain" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 9:21 AM 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

