I gang

VB.Net - Sort Structure Array By Up To 4 Fields


Thank you for taking the time to review my Visual Basic Express 2010 project.

This is a work for hire. I need commented code to sort an array of a Structure. I must be able to sort the items on ANY OR ALL of four fields. I have attached a sample application for you to do the work.

Please do not suggest that I use a Class instead of a Structure. I am locked into a Structure.

This is the example structure:

Public Structure TestStructure

Public Name As String

Public Weight As Single

Public MainCategory As Integer

Public SubCategory As Integer

End Structure

Public ts() as TestStructure

Public Sorted_ts as TestStructure

Your code must be able to sort ts() down to sorted_ts() using any or all of the fields in TestStructure. For example, I might need to sort by a specific SubCategory, and then by weight. All records in ts() that match the SubCategory (i.e. 3) are then sorted by weight (i.e. from heaviest to lightest) and are added to sorted_ts(). Sorted_ts() will be cleared before each use. It is Sorted_ts() that will be sent to my menu system.

If you have any questions, please contact me.

Thank you very much for your time,


Evner: VB.NET

Se mere: visual basic net array, vb work, vb this, vb.net sort structure array, vb net for hire, vb net array example, vb net array, using array in vb net, up string, sort sort sort, sort sort, sort array c, no structure, example of vb.net, example of vb net, e vb, Structure, net code review, string array, project visual basic 2010 express, visual basic project 2010, code review net, array string, visual basic net express, vb sample project

Om arbejdsgiveren:
( 15 bedømmelser ) Arlington Heights, United States

Projekt ID: #6028319