Building Argument Collections

Arguments (parameters) passed to (when invoking CFC’s or Web Services) are usually passed in NAME=value pairs. But if you need to build your arguments programmatically, here is another option – create a structure (with the StructNew() function) and populate it with all the arguments (using the argument name as the member name and the value as the value), and then pass the structure to an attribute named ARGUMENTCOLLECTION. (Applies to: ColdFusion MX)

Leave a Reply