That's a nice function Brendan. Good job.

andy
> Here's the actual function in cfscript:
> 
> function Struct() { return arguments; }
> 
> I posted about its use here:
> http://www.brendanbaldwin.com/post/structfunction/
> 
> Basically though, it lets you do this:
> 
> customer=Struct(id=1,name="Brendan",occupation="Web-Lackey");
> 
> Which does the equivalent of:
> 
> customer=StructNew();
> StructInsert(customer,"id",1);
> StructInsert(customer,"name","Brendan");
> StructInsert(customer,"occupation","Web-Lackey");
> 
> Pass it on! :-)
> 
> --Brendan Baldwin
>   http://www.brendanbaldwin.com
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228394
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to