Looping through an array and calling a function on each pass in v-basic / asp classic

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-03-21T18:17:47Z Indexed on 2010/03/21 18:21 UTC
Read the original article Hit count: 823

How do I loop through an array and call a function on each pass?

At the minute I'm trying the following...

if Request.Form("authorize") <> "" then
    dim post_ids, ids 
    post_ids = Request.form("authorize")
    ids = split(post_ids, ",")

    For i = LBound(ids) to UBound(ids)
        set updater = myFunction("comment_id=" & ids(i))
    Next
end if

I'm getting the following error...

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. 

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about visual-basic