There are some array functions you can use on Arguments in MX but not all --
as a matter of fact, there are array functions which could be used on the
Arguments array in CF 5 that now can't be used on them in MX (imho this is a
bug), for instance, you can't use arrayprepend, arrayappend or arrayinsertat
on an array in CFMX (which I had been using for several wrapper functions
until I realized they didn't work in MX). But ArrayLen() still works.

It's not quite a structure with numeric keys either because when you dump
arguments from a udf written with <cffunction> what you see is structure
output with _only_ the alpha keys (not the array numbers). If you try using
arrayappend() on the object it'll show you the name of the new Java class
that's taken the place of the array in CF5.

Imho this was poor implementation for MX. I would have much rather seen an
array, with values in the array coppied to named variables in the var scope
-- presumably the same way it worked in CF5. Doing it this way has only
eliminated functionality for me. I don't find it terribly useful that I can
now reference arguments as arguments.argumentname in addition to
arguments[3] or simply argumentname, so I don't see this as a feature in any
way. I'm just stuck with working with it.

In any event -- thanks for the heads up on the typo Ray. :)

s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource     http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


> So really it's a struct where the keys are integers, is
> that right?

> ----- Original Message -----
> From: "Raymond Camden" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, February 27, 2003 12:28 AM
> Subject: RE:
> cffunction_arguments_"[undefined_struct_element]"_--_archi
> ved_but_ not
> returned?


>> I should be more clear - the value of Arguments is both
>> an array and a
>> struct, not the arguments themself. Hope that makes
>> sense.
>>
>> =========================================================
>> ==============
>> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
>> Member of Team Macromedia
>>
>> Email    : [EMAIL PROTECTED]
>> Blog     : www.camdenfamily.com/morpheus/blog
>> Yahoo IM : morpheus
>>
>> "My ally is the Force, and a powerful ally it is." - Yoda
>>
>> > -----Original Message-----
>> > From: Raymond Camden [mailto:[EMAIL PROTECTED]
>> > Sent: Wednesday, February 26, 2003 5:24 AM
>> > To: CF-Talk
>> > Subject: RE:
>> > cffunction_arguments_"[undefined_struct_element]"_--_ar
>> > chived_
>> > but_ not returned?
>> >
>> >
>> > In MX, UDF arguments is an array and a structure.
>> >
>> > =======================================================
>> > =======
>> > =========
>> > Raymond Camden, ColdFusion Jedi Master for Mindseye,
>> > Inc
>> > Member of Team Macromedia
>> >
>> > Email    : [EMAIL PROTECTED]
>> > Blog     : www.camdenfamily.com/morpheus/blog
>> > Yahoo IM : morpheus
>> >
>> > "My ally is the Force, and a powerful ally it is." -
>> > Yoda
>> >
>> > > -----Original Message-----
>> > > From: Matthew Walker
>> > > [mailto:[EMAIL PROTECTED]
>> > > Sent: Tuesday, February 25, 2003 11:56 PM
>> > > To: CF-Talk
>> > > Subject: Re:
>> > > cffunction_arguments_"[undefined_struct_element]"_--_
>> > > archived_
>> > > but_ not returned?
>> > >
>> > >
>> > > Yo Isaac,
>> > >
>>
>>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Archives:
> http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
> Subscription: http://www.houseoffusion.com/cf_lists/index.
> cfm?method=subscribe&forumid=4
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Get the mailserver that powers this list at
> http://www.coolfusion.com

>                               Unsubscribe: http://www.houseoffusion.com/cf_lists/uns
>                               ubscribe.cfm?user=633.558.4


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to