[thelist] ASP Loop Question

darren darren at web-bitch.co.uk
Wed Mar 20 09:42:00 CST 2002


On 20 March 2002 at 15:31:18, Feingold Josh S <Josh.S.Feingold at irs.gov> wrote:

how about something like:

    dim arrVariable(10)  <--- this might need to be arrVariable(9)
    arrVariable(0) = "string1"
    arrVariable(1) = "string2"
    ...
    arrVariable(9) = "string10"

    for x = 0 to ubound(arrVariables, 1)
        rs.Open "INSERT INTO database (column) VALUES (' " & arrVariable(x) & " ')"
    next

hth,

darren




More information about the thelist mailing list