Array Problem

Results 1 to 2 of 2

Thread: Array Problem

  1. #1
    Join Date
    Dec 1969

    Default Array Problem

    I&#039;m trying to set up a form with tick boxes to select records from a list to be deleted when the form is submitted. The number of records in the list depends on how many are in the database.<BR><BR>What Im trying to do (without much luck) is use a for loop to assign each array value into an sql string, this is what I&#039;ve come up with so far:<BR>(Im starting with 2 because request.form(1) is the submit button)<BR>&#060;code&#062;<BR>Dim NoChecked, Erasing<BR>NoChecked = Request.Form("NoChecked")<BR>For Erasing = 2 To NoChecked<BR>Response.write "<BR>"&Erasing&". : "& (Request.Form(Erasing))<BR>Next<BR>&#060;/code&#062;<BR><BR>Any suggestions?

  2. #2
    Join Date
    Dec 1969

    Default RE: Array Problem

    you need to loop to the upper boundry of the array <BR><BR>try <BR><BR>ChkBxArray = request.form("NoChecked") &#039;get the contents of the array<BR>NoChecked = Ubound(Request.Form("NoChecked")) &#039;get the no of elements in the array<BR>For Erasing = 2 To NoChecked<BR>Response.write "<BR>"&Erasing&". : "& ChkboxArray(Erasing)<BR>Next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts