bingo, thanks Snake -----Original Message----- From: Snake [mailto:[EMAIL PROTECTED] Sent: 26 August 2006 00:39 To: CF-Talk Subject: RE: Custom Tag
Because a local variable only exists inside the tag. If you want the variable to exist outside of the tag then you should put it in a global scope such as request, or put it in caller scope. Snake -----Original Message----- From: Jenny Gavin-Wear [mailto:[EMAIL PROTECTED] Sent: 26 August 2006 00:26 To: CF-Talk Subject: Custom Tag I'm (finally, it's about time too!) looking at tags. Both files exist in the same directory. I've added the directory to the CF tags dir list in cfadmin so I can use the tag elsewhere. I've successfuly called the tag with a "Hello world" type function. But, I can't see why this isn't working, nothing is being returned in the getstocknow query. Can anyone spot what I'm doing wrong, please? Tag: <cfquery name="getstocknow" datasource="sc" > select * from tbl_stock </cfquery> Tag use: <cf_stocklist> <cfdump var="#getstocknow#"> -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 24/08/2006 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251095 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4