Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. virtuoso13

    Sort array of structure

    Hi chrissie, Got it. what do you think? (note: always use ascending) Public Class B2BLineComparer Implements IComparer Private sortElement Public Sub New(ByVal sCategory As String) Me.sortElement = sCategory End Sub Public Function Compare(ByVal x As Object...
  2. virtuoso13

    Sort array of structure

    Hi Chrissie, It worked now. It was my mistake as i declared the array with huge size and forgot to resize it. Another issue is that I now need to sort it based on two elements (or fields). it's like sorting using SQL statement (ORDER BY CustomerCode, WarehouseCode). Is it possible to amend...
  3. virtuoso13

    Sort array of structure

    Hi chrissie, That is syntax error. I had changed that as i also thought it was the cause. It seems like the array is somehow set to nothing because i tried to print out some values from the array of structure and it's blank. If you need test data, perhaps i can provide SQL statement for the...
  4. virtuoso13

    Sort array of structure

    Hi all, I have a problem in sorting array of structure. I found out a thread here talking about the same thing and it had been closed long time ago. I applied the codes and it does not seem to work. Here's my code: -- 1. I created an Icomparer class: Public Class B2BLineComparer...

Part and Inventory Search

Back
Top