Dave, the problem you were having (I should think) was that your clause for putting in a comma was if:
Current Element != Last element of the list But if you have another element in the list which has the same value as the last one, it will fall over. Thats why I posted the code that looks at the element index, not the value it points to in the list. You want to put a comma in front of each value if its not the first time it loops through. Not very well explained I know, but you'll see what I mean. Taz -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
