"Cannot declare local variable tempNoteText twice"

I'm not. I'm declaring an argumnent within a function and then using a
variable with the same name in var (local) scope. 

<cffunction name="splitNotes" output="No" returntype="array">
   <cfargument name="tempNoteText" required="Yes" type="string">
   <cfset var tempNoteText = trim(ARGUMENTS.tempNoteText)>

so the local function scope includes the argument scope - it's not 2
different ones. I suppose that's buried somewhere within the docs for me
to RTFM but I really didn't think it'd be the case. I suppose it makes
sence but gee

...I'd *REALLY* like private variables in CFFUNCTION to be *REALLY*
private

cheers
barry.b



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to