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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.