Phillip, If you are using CF5, this wont work because variables wasn't a structure back then. I'm just telling you this, not to correct James, but because you are using CT and not CFC (so I think you might be on pre CFMX).
Before CFMX you would have to (reluctantly) use Evaluate(): #Evaluate(attributes.queryname & "." & attributes.fieldname)# Pascal > -----Original Message----- > From: James Holmes [mailto:[EMAIL PROTECTED] > Sent: 19 October 2004 06:40 > To: CF-Talk > Subject: RE: custom tag help > > The variables scope should work within the custom tag: > > <cfoutput query="#ATTRIBUTES.QUERYNAME#"> > #VARIABLES[ATTRIBUTES.QUERYNAME][attributes.fieldname][currentrow]# > </cfoutput> > > Note that I dropped the query name from currentrow as it's now a dynamic > name and you can rely on CF to figure out what currentrow means inside a > cfoutput tag. > > -----Original Message----- > From: Phillip Perry [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 19 October 2004 11:26 > To: CF-Talk > Subject: RE: custom tag help > > Thanks James. That does work if you assume that display is the query name, > but what if the query name is stored in an attributes.queryname value? > I've > played around with what you gave me but I can't seem to get it to work. > any > thoughts? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181812 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

