Dale,
You missed the question.. The question was what is the scope for variables that are local to a function. As far as should, I do not use the struct method to define var scoped variables. But that is my personal choice, but you should var scope them yes. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. HYPERLINK "http://www.aegeon.com.au"www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dale Fraser Sent: Tuesday, 3 July 2007 4:25 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Function local variables scope No it's not variables. variables is CFC private this is CFC public Here's what you should do <cffunction ....> <cfset var local = structNew() /> <cfloop index="local.i" from="1" to="10"> ... <cfset local.another = "Hello" /> This way 1. You can dump them 2. You can not forget to var them thus they are all private. Regards Dale Fraser HYPERLINK "http://dalefraser.blogspot.com"http://dalefraser.blogspot.com From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of AJ Mercer Sent: Tuesday, 3 July 2007 4:08 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Function local variables scope is it VARIABLES or is that something completely different? On 7/3/07, Chris Velevitch <HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED] > wrote: On 7/3/07, Dale Fraser <HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED] > wrote: > > There is no local scope, what are you referring to. I'm inside a function and I want to cfdump the functions local scope. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group m: 0415 469 095 HYPERLINK "http://www.flashdev.org.au"www.flashdev.org.au -- If you are not living on the edge, You are taking up too much space. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.14/884 - Release Date: 2/07/2007 3:35 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.14/884 - Release Date: 2/07/2007 3:35 PM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---