My experience with passing structures to custom tags is that they do NOT "pass by reference" very well.
I would have tried the same thing you did. But based on what you've said, it appears that CFPARAM doesn't quite understand structures the way we'd like it to. Raymond's "workaround" is what I'd try next also. -----Original Message----- From: Jim McAtee [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 11:36 AM To: CF-Talk Subject: Passing a Struct to a Custom Tag How do you pass a struct as an attribute to a custom tag? (CF5) I've got an app structured something like: <!--- application.cfm ---> <cfset cfg = StructNew()> <cfset cfg.param1 = "yes"> <cfset cfg.param2 = "20"> <!--- mypage.cfm ---> <cfinclude template="header.cfm"> <cf_mytag cfg="#cfg#"> <cfinclude template="footer.cfm"> <!--- mytag.cfm ---> <cfparam name="attributes.cfg.param1" default="no"> <cfparam name="attributes.cfg.param2" default="100"> <cfoutput> #attributes.cfg.param1#<br> #attributes.cfg.param2#<br> </cfoutput> And always get as output no 100 I realize that I haven't yet dealt with the issue of CF passing structs by reference, but it seems that the <cfparam> tags shouldn't alter the variables in this instance. Obviously I'm doing something else wrong. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 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

