The toArray() function is not needed due to the way that component methods deal
with passed arguments. To quote myself
"The Arguments Scope
When a UDF is executed, the Arguments scope will automatically be created to
contain any information passed into the UDF. This scope is private to the UDF
Micheal,
You can easily do something like this
HTH
Qasim
On 1/26/07, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
>
> Perfect.
>
> And it uses something that I mentioned in my "From UDFs to CFCs" article
> in FAQU 2. See what happens when you code without sleep. :)
>
> This is part of a new ve
Perfect.
And it uses something that I mentioned in my "From UDFs to CFCs" article in
FAQU 2. See what happens when you code without sleep. :)
This is part of a new version of my MakeTree() UDF, which is being used by my
'soup to nuts' comment.cfc. And for those who will ask, I'll post it up fo
untested:
ArrayToList(Arguments.Query[Arguments.Unique])
On 26/01/07, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
>
> Here's an interesting one. A CF component method is passed a query and a
> string who's value is the name of one of the query's columns. I want to use
> the valuelist() function
Here's an interesting one. A CF component method is passed a query and a string
who's value is the name of one of the query's columns. I want to use the
valuelist() function against the passed query and columnname. I can get it
working using this:
Arguments.Query is the query being pass
;
> Email: [EMAIL PROTECTED]
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -Original Message-
> > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 10, 2002 12:24 PM
I was just about to replay to this and say *ahem* Evaluate() ?
Erika
>>| -Original Message-
>>| From: Raymond Camden [mailto:[EMAIL PROTECTED]]
>>|
>>| Sure, just do:
>>|
>>|
>>|
>>| FYI - this is one of the FEW times
> -Original Message-
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 12:07 PM
> To: CF-Talk
> Subject: RE: dynamic valuelist
>
>
> Of course, in CFMX, you can treat query columns as arrays, so you don't
> need evaluate th
]]
> Sent: Wednesday, July 10, 2002 12:24 PM
> To: CF-Talk
> Subject: Re: dynamic valuelist
>
>
> Thanks. Very sneaky. Now if I can just get past CF not liking
> the passed query. :)
> (which I assume is due to the query being passed by
> reference, not value)
>
>
y is the Force, and a powerful ally it is." - Yoda
>
> > -Original Message-
> > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 10, 2002 12:01 PM
> > To: CF-Talk
> > Subject: dynamic valuelist
> >
> >
> > The Va
cromedia
Email: [EMAIL PROTECTED]
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, July 10, 2002 12:01 PM
> To: CF-Talk
> Subject: RE:
: [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -Original Message-
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 12:01 PM
> To: CF-Talk
> Subject: dynamic valuel
The ValueList() function takes as its attribute the name of a query field. This is
passed in without quotes (essentially breaking the rule of non-quoted variables inside
functions being evaluated). What I want to do is create a UDF and pass in a query and
the name of a column. These are to be c
13 matches
Mail list logo