indexing - Index was outside the bounds of the array visual basics -
i having error index outside bounds of array.
me @ code please?
private sub piclist_click(byval sender system.object, byval e system.eventargs) handles piclist.click frmlist.show() frmlist.lstshow.items.clear() dim fmtstr string = "{0,-5}{1,-10}{2,-15}{3,-20}{4,-25}" frmlist.lstshow.items .add(string.format(fmtstr, "university name", "abbreviation", "state", "accredited year", "total students")) = 0 n - 1 .add(string.format(fmtstr, name(a), abbreviation(a), state(a), accredited(a), total(a))) next .add(string.format(fmtstr, "", "", "", "", "")) .add("total of " & n & " universities.") end end sub