> How can I list the attributes passed by calling custom tag. say
>  
> <CFModule template="myTag" a ="" b ="" c ="">
>  
> in myTag.cfm
>  
> I want to set
> <CFLoop from="1" To="#NumberOfAttributesPassed#" Index="Counter">
>     <CFSet hdnValue#Counter# = Attributes.a>
>     <CFSet hdnValue#Counter# = Attributes.b>
> ..................
> </cfloop>
>  
> So i want exact list of attributes passed then i can play 
> around with it using arrays and stuff.

The Attributes scope is a structure, so you should be able to loop over it
as such:

<cfloop collection="#Attributes#" item="ThisAttribute">
        <cfset somevar = Attributes[ThisAttribute]>
</cfloop>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to