vb.net - Visual Basic add to Array dynamically and sort -
still having trouble can please help?
this needs written in visual basic
here statement main part of program...
mylist.foreach(addressof processlink)
what statement says following.... "for each item in arraylist "mylist" send item sub program "processlink"
note processlink going receive multiple groups of data arralist "mylist"
processlink takes each value sent , turns "p.myname" , p.myvalue"
i need processlink add these values array. , each time receives batch of data arraylist "mylist" add values same array. processlink sort array based on "p.value"
i need processlink output name value pairs in array , output result as...
response.write("<tr><td>" & p.myname & "</td><td>" & p.myvalue & "</td></tr>")
what should code in processlink like?
i really reccomend using generic object lists rather arrays. of functionality need + 10x more. sorting, adding, etc way easier. generic lists don't have worry declaring array size, or of difficulties when working arrays containing objects. take following more information including code sample:
.net object collections using generics 101:
http://allen-conway-dotnet.blogspot.com/2009/11/net-object-collections-using-generics.html
list(of t) class:
Comments
Post a Comment