>>is there a function to do this in a line of code Try this: MyList = RepeatString(",VarChar", arrayLen(MyArray))
The comma at the begining will be considered as an empty element which is ignored by CF. However, if you rather have a clean list, use this: MyList = mid(RepeatString(",VarChar", arrayLen(MyArray)) , 2, 9999) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325078 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4