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
I suspect that the StructFind syntax is the "original" (CF4, maybe?) way to use structs, and that the array syntax is just newer. With cfmx I'm thinking that both styles are probably exactly the same under the hood (in terms of performance). Mark -Original Message- From: Auke van