[thelist] ASP For next Loop - help
Brian Delaney
brian.delaney at mccmh.net
Mon Jul 10 14:44:32 CDT 2006
For some reason, this For loop always repeats the first element. Which
returns a true
Do While Not rsServiceList.EOF
For Icounter = 0 to iarraysize
IF mid(rsServiceList("ID"),2,36) =
ServicesArray(Icounter) Then
servicelistHTML = servicelistHTML &
"<input id=checkboxs type=checkbox value= " &
mid(rsServiceList("ID"),2,36) & " name=checkboxs
checked> "
servicelistHTML = servicelistHTML &
rsServiceList("Name") & "<br>"
vtrue = true
else
vtrue = false
end if
Next
if vtrue <> true then
servicelistHTML = servicelistHTML &
"<input id=checkboxs type=checkbox value= " &
mid(rsServiceList("ID"),2,36) & "
name=checkboxs> "
servicelistHTML = servicelistHTML &
rsServiceList("Name") & "<br>"
end if
vtrue = ""
rsServiceList.MoveNext
Loop
*
*
*
This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.
More information about the thelist
mailing list