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 (*): 
---
xStruct["#evaluate( de( "#variableWithFieldNameInIt#" ))#"]
---

(*) Sorry this is just a random rant towards the usually overkill on pounds and 
quotes in their examples.


> 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 the compiler treats 
> them both the same.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250874
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to