<cfset myObject['set' & theKey](struct_Params[theKey]) />
^ untested :)
On 4/18/06, Matt Williams <[EMAIL PROTECTED]> wrote:
> What about this one:
>
> <cfloop collection="struct_Params" item="theKey">
> <cfset Evaluate(myObject.set#theKey#(struct_Params.#theKey#)" />
> </cfloop>
>
> Basically it is calling a setter method based on what is in the a structure.
> The cfset would evaluate to myObject.setFirstName('Matt')
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238002
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54