>>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
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
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 (*):
--
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
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
5 matches
Mail list logo