Results 1 to 2 of 2

Thread: Edit

  1. #1
    Join Date
    Dec 1969

    Default Edit

    Hi<BR>I am trying to get 30 check box values from a form named 1, 2 , 3 , 4, 5, 6 etc.. and have a value of true. I want to set them up for editing, but I cannot get a faster way off doing this than calling them one by one, I tried the code below but it will not work, any ideas?<BR><BR>For i = 1 to 30<BR> thepro&i = request.form(""&i&"")<BR> if thepro&i = "" then thep = false end if<BR> pro&i = Replace(thepro&i, "&#039;", "&#039;&#039;")<BR>Next

  2. #2
    Join Date
    Dec 1969

    Default RE: Edit

    I always name my checkboxes chkNAME_OF_CHECKBOX. If you use this approach you could do something like this:<BR><BR>For each field in Request.form<BR> If left(Field.name,3) = "chk" then &#039;--field is an checkbox<BR> &#039;do your stuff<BR> end if<BR>Next<BR><BR>Be sure not to use the name of the checkbox in the &#039;do your stuff&#039; section but reference it with &#039;field&#039;<BR><BR>Good luck<BR><BR>Peter

Posting Permissions

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