Insertion index was out of range.

D

DaveF

Insertion index was out of range. Must be non-negative and less than or
equal to size. Parameter name: index

Dim aaa As Integer = -1

Do While dr.Read

Dim thecount = UBound(arrList)

aaa += 1

For aa = 0 To UBound(arrList) - 1

Dim vall = InStr(UCase(dr("rpttype")), arrList(aa))

Dim MyPos = InStr(UCase(dr("rpttype")), arrList(aa), CompareMethod.Text)



If InStr(UCase(dr("rpttype")), arrList(aa)) > 0 Then

Dim thecc = dr("rpttype")

Dim thecc1 = aaa



qryFeed.DataBind()

qryFeed.Items.Insert(aaa, New ListItem(dr("rpttype"), dr("rpttype")))
****************I get the error on the last one



End If

Next

Loop



--


David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top