I do believe that the collection needs to be enclosed in pound signs.
IE: <cfloop collection="#dGadgetSettings#" item="item">

Maybe this is it?

-----Original Message-----
From: Jeff Chastain [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4: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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to