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 


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -