aprivate wrote:
Hi
I tried all the examples in the visual studio IDE but
the array.sort (array,icomparer) examples fails to
work in VB.NET for Smart Devices..
its get an error before it is compiled...
Is there a workaround?
In the documentation for Array.Sort, only the following overloads are
listed as being supported by the .NET Compact Framework:
Overloads Public Shared Sub Sort(Array)
Overloads Public Shared Sub Sort(Array, Integer, Integer, IComparer)
Overloads Public Shared Sub Sort(Array, Array, Integer, Integer,
IComparer)
so to get your desired result you need to use the second of these and
explicitly supply the range to sort as being the entire array.
--
Larry Lard
Replies to group please