Thanks, this works great. I really had thought there might have been a simple 
function to to do this :-)

thanks again,
tom

>So, if you have an arbitrary number of columns and when you submit the 
>form you get:
>
>form.align=left,left,...
>form.dname=Agent Version,Allow Client,...
>
>then you can do:
>
>colCount = listLen(form.align);
>xml = "";
>for (i = 1;  i LTE colCount; i++) {
>     xml &= "<column>";
>     xml &= "<align>#listGetAt(form.align, i)#</align>";
>     xml &= "<dname>#listGetAt(form.dname, i)#</dname>";
>     ...
>     xml &= "</column>";
>}
>xml = "<columns>#xml#</columns>";
>
>
>On 12/14/11 8:43 PM, Tom Jones wrote:
>> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349166
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to