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#/
I think structDelete() returns true/false for success/fail on deleting
keys. What do you see if you
cfoutput#structDelete(url,'three')#/cfoutput?
-Cameron
On Thu, Sep 4, 2008 at 2:21 PM, [EMAIL PROTECTED] wrote:
Does anyone know of a difference between CF7 and CF8 concerning structCount
and
Childress [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
09/04/08 02:38 PM
Please respond to
discussion@acfug.org
To
discussion@acfug.org
cc
Subject
Re: [ACFUG Discuss] structCount and structDelete
I think structDelete() returns true/false for success/fail on deleting
keys. What do you see
PM
Please respond to
discussion@acfug.org
To
discussion@acfug.org
cc
Subject
Re: [ACFUG Discuss] structCount and structDelete
I think structDelete() returns true/false for success/fail on deleting
keys. What do you see if you
cfoutput#structDelete(url,'three')#/cfoutput?
-Cameron
Brooks-
Interesting - just tested on 8 and it looks like CF8 is not
(re)counting the struct members of the URL scope properly on CF8 at
least. This may be a bug in CF, but I would generally frown on
*creating* URL structures since they are reserved and used for another
purpose in CF already.
by: [EMAIL PROTECTED]
09/04/08 03:10 PM
Please respond to
discussion@acfug.org
To
discussion@acfug.org
cc
Subject
Re: [ACFUG Discuss] structCount and structDelete
I guess I don't see what is wrong with that output. That's exactly
what I would expect it to be. You saying this problem was resolved