Recursion and Scope problem?

2003-09-18 Thread Cedric Villat
Ok, I'm doing a bit of recursion, and my variables seem to be overwriting themselves, which makes no sense to me. Here is my code: cffunction name=getDTreeWidth returntype=numeric cfargument name=node type=string required=yes cfargument name=level type=numeric required=yes cfset root_node =

RE: Recursion and Scope problem?

2003-09-18 Thread Hagan, Ryan Mr (Contractor ACI)
Try using the var keyword in your first four cfset statements. cfset var root_node = Arguments.node cfset var levels = ... -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:59 PM To: CF-Talk Subject: Recursion and Scope problem? Ok

RE: Recursion and Scope problem?

2003-09-18 Thread Ian Skinner
statements. cfset var root_node = Arguments.node cfset var levels = ... -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:59 PM To: CF-Talk Subject: Recursion and Scope problem? Ok, I'm doing a bit of recursion, and my variables seem

RE: Recursion and Scope problem?

2003-09-18 Thread Hagan, Ryan Mr (Contractor ACI)
cfset var levels = ... -Original Message- From: Cedric Villat [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 12:59 PM To: CF-Talk Subject: Recursion and Scope problem? Ok, I'm doing a bit of recursion, and my variables seem to be overwriting themselves, which makes no sense

RE: Recursion and Scope problem?

2003-09-18 Thread Andre Turrettini
To: CF-Talk Subject: Recursion and Scope problem? Ok, I'm doing a bit of recursion, and my variables seem to be overwriting themselves, which makes no sense to me. Here is my code: cffunction name=getDTreeWidth returntype=numeric cfargument name=node type=string required=yes cfargument name=level