I'd say that's a bug in structCount, eh?  or at least a change in
behaviour from CF6, since I'm pretty sure it always ignored keys with
null values, unless you explicitly requested them.  Not that handling
of null values has ever been very well documented.

cheers,
barneyb

On 6/21/05, Sean Corfield <[EMAIL PROTECTED]> wrote:
> On 6/21/05, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> > i just tested harry's code and did some testing with the results...
> ...
> > perhaps that last value is the reference address when you did the
> > argumentcollection? or some other java object floating around in the ether?
> 
> A little more digging shows that arguments[3] is null. If you iterate
> over arguments as a collection, you only get two entries.
> structCount(arguments) seems to return the number of keys, even when
> those keys refer to null values. However, structKeyList(arguments)
> only returns keys for non-null values.
> 
> Loop by structCount - isObject():
> i = 1 NO argument no. 1 i = 2 NO argument no. 2 i = 3 YES arguments[3] is null
> 
> Loop by collection - isObject():
> i = B NO argument no. 2 i = A NO argument no. 1
> 
> structKeyList(arguments) = B,A
> --
> Sean A Corfield -- http://corfield.org/
> Team Fusebox -- http://fusebox.org/
> Got Gmail? -- I have 50, yes 50, invites to give away!
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
> 
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to