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:

http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -