It's even more confusing if you read on :

Top

The ColdFusion object (either a structure or an array) from which to start 
the recursive search. It is the object not the name of the object.


It clearly says it should accept a structure, but it doesn't seem to.

It's not a big problem as you can always to this:

<CFSET myStruct = StructNew()>
<CFSET myStruct.Array = somearray>
<CFSET myarray = StructFindValue(myStruct,somekey,scope)>

but it would be nice if you didn't have to

spike


At 21:43 05/04/2001 Thursday, you wrote:
>Hmm, from what I see in the doc, I still think it expects a struct for the
>top level variable:
>
>StructFindValue searches recursively through an arbitrarily complex
>sub-structure of nested arrays, structures, and other elements and returns
>an array containing any structures with values that match the key specified
>in the Key parameter.
>
>StructFindValue(Top, Key [, Scope])
>
>I have to admit - this is a bit vague.
>
>=======================================================================
>Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
>
>Email   : [EMAIL PROTECTED]
>ICQ UIN : 3679482
>
>"My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Spike [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 05, 2001 1:35 PM
> > To: Spectra-Talk
> > Subject: StructFindValue function
> >
> >
> > Hi all,
> >
> > According to the docs I should be able to pass an array as the
> > top element
> > to this function. When I try it I get an error saying it could
> > not convert
> > the specified item to a structure.
> >
> > Has anyone managed to get it to work with an array?
> >
> > spike
> >
> >
> > Stephen Milligan
> > Internet Developer and Allaire training guru
> > Tel: +34 686 021171
> > ICQ: 15831735
> > Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > "A good developer is the type of person who looks both ways on an one way
> > street!"
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to