Loop through resultset and add create comma seprated string in ASP Classic

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-06-12T12:00:38Z Indexed on 2010/06/12 12:02 UTC
Read the original article Hit count: 279

Filed under:
|
|

Here's my ASP Classic:

set irs  = recordset(sql,PageDB)            
    if not irs.eof then

        dim new_list
        new_list = ""

        do while not irs.eof

            'Add irs("name") to new_list and seperate by comma      

        irs.movenext

        loop

    end if

kill(irs)

How would I add irs(name) to new_list and seperate by a comma?

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about loops