Hang on... > You haven't scoped "i" which means it lives in the unamed scope, > which is shared across the entire component. > > If you want "i" to have a meaning that's local to the function > you're in, then declare it by doing something like > > <cfset var i = 0 > > > right after your <cffunction> and <cfargument>. ISTR there are > problems with doing this declaration in CFSCRIPT inside a CFC.
So, what you are saying is, that the reason that it doesn't work, is that "I" is being overwritten in the loop... Ah I see! Sorry, maybe I'm being stupid but why is the unnamed scope shared across all of the component? What is the this scope all about then? Paul ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
