Re: What is the use of structFind? (CFMX)

2006-08-24 Thread Claude Schneegans
>>Although this ... xStruct['#variableWithFieldNameInIt#'] and xStruct[variableWithFieldNameInIt] works even better. I'm also wondering the use of this function. ;-/ -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tags

Re: What is the use of structFind? (CFMX)

2006-08-24 Thread James Holmes
xStruct['#variableWithFieldNameInIt#'] is also identical to xStruct[variableWithFieldNameInIt] On 8/24/06, Jeff Guillaume <[EMAIL PROTECTED]> wrote: > I haven't used StructFind in a while, but one use might be if you're storing > the name of the field you want to access in a variable: > > structF

Re: What is the use of structFind? (CFMX)

2006-08-24 Thread Auke van Leeuwen
Neither have I.. I came across structFind in someone elses code. And yes, my guess is it's all the same to Java as well. btw: xStruct[variableWithFieldNameInIt] works just as well and is a little cleaner if you ask me. =) Of couse we could always use the Macromedia Livedoc Examples way (*): --

Re: What is the use of structFind? (CFMX)

2006-08-24 Thread Jeff Guillaume
I haven't used StructFind in a while, but one use might be if you're storing the name of the field you want to access in a variable: structFind(xStruct, variableWithFieldNameInIt); Although this ... xStruct['#variableWithFieldNameInIt#'] . works too, so I dunno. I'd bet my left leg that t

RE: What is the use of structFind? (CFMX)

2006-08-24 Thread Gaulin, Mark
From: Auke van Leeuwen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 5:33 AM To: CF-Talk Subject: What is the use of structFind? (CFMX) In CFMX 6+: I'm just wondering, is there any reason why I would use structFind( xStruct, 'key' ) over xStruct

What is the use of structFind? (CFMX)

2006-08-24 Thread Auke van Leeuwen
In CFMX 6+: I'm just wondering, is there any reason why I would use structFind( xStruct, 'key' ) over xStruct[key]? or the other way around? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-