Forum OpenACS Development: Response to How to use a Tcl list of ints in a int bind var?

Collapse
Posted by Stephen . on
But you can find out how long the list is...
    set i 0

    foreach id $list_of_ids {
        lappend list_of_bind_ids :id_$i
        set id_$i $id
        incr i
    }

    set list_of_bind_ids [join $list_of_bind_ids ,]