Does anyone know of a difference between CF7 and CF8 concerning 
structCount and structDelete? The following code snippet performs 
differently in CF7 and CF8:

<cfset url=structNew()/>
<cfset url.one = 1/>
<cfset url.two = 2/>
<cfset url.three = 3/>

<cfdump var="#structCount(url)#"/>
<cfdump var="#url#"/>

<cfset structDelete(url,'three')/>

<cfdump var="#structCount(url)#"/>
<cfdump var="#url#"/>

When you run the above code snippet in CF7 the structCount(url) return 3 
then 2 (after the delete). But in CF8 it returns 3 and 3 again.

Interestingly the problem seems to manifest itself when using the 'url' 
structure name (variable scope). 

Please let me know if this is a known 'behavior' and if so - does Adobe 
have any documentation on it.

Sincerely,

Brooks Wilson
Assert your right to make a few mistakes. If people can't accept your 
imperfections, that's their fault. - Dr David M Burns

 Federal Reserve Bank of Atlanta · 1000 Peachtree Street, N.E. · Atlanta 
Georgia 30309-4470 
404.498.8178 · fax 404.498.8239 · [EMAIL PROTECTED]

 

<<image/gif>>

Reply via email to