Another cute trick is to use a two way structure - that is store the values,
keys and then store them again just the keys as values and the values as
keys.
Then:
MyStruct[Key1] will return Value1
And also 
MyStruct[Value1] will return Key1

The only gotcha is none of the keys or the values may have the same value!
Works fine in this case as the fuseactions and the meaningless text won't be
the same
Also works great for text  to numeric and vice versa conversions.

HTH,
Noam

        > Why not just use a structure that translates the fuseaction to the
        > "meaninless" text", and then all you have to do is change the
values in the
        > structure.  You could even load up the structure from your DB!

        

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to