473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

NETCF - Array.Sort Method (Array, IComparer) - error

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?

Allan
Nov 21 '05 #1
3 3130

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

Nov 21 '05 #2
Do you think we all have ESP? What error do you get?

Nov 21 '05 #3
Hi
Ok - sorry - this is a better description

1) I just found a new example from the web

http://www.codepedia.com/1/VBNET_ArraySort

2) When I enabled this in the VB Smart Application program
it complains with the following message

"overload resolution failed because no accessible 'sort' accepts this
number of arguments'

All the declarations had no error.

3) When I pasted the same code into Vb.net for win32 project , it works.

Regds
Allan


"Chris Dunaway" <du******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Do you think we all have ESP? What error do you get?

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: its me | last post by:
Let's say I have a class of people... Public Class People Public Sex as String Public Age as int Public Name as string end class And I declare an array of this class...
7
by: Federico G. Babelis | last post by:
Hi All: I have this line of code, but the syntax check in VB.NET 2003 and also in VB.NET 2005 Beta 2 shows as unknown: Dim local4 As Byte Fixed(local4 = AddressOf dest(offset)) ...
4
by: DancnDude | last post by:
I have a class that needs to have several different kinds of sorting routines on an ArrayList that it needs to conditionally do based upon the data. I have successfully created a class that...
9
by: Steve Wasser | last post by:
I need to sort a two-dimensional array. Each day I process a file with 9 comma-delimited fields, and varying amount of records (lines). I want to pull in each line, split it according to the comma...
9
by: Arjen | last post by:
Hello, Persons is a hashtable which I convert to an array. Person aPerson = new Person; Persons.Values.CopyTo( aPerson, 0 ); Now I can access the person items like aPerson.name or...
4
by: Arjen | last post by:
Hi, I need to add this inside an array: 1 3 2 4 3 2 4 5 5 1 I think of using this:
6
by: Carlos | last post by:
Ok I have the following Jagged array double mData = new double; for (int x = 0; x <= 259200-1; x++) { mData=new double; } And I load the data in to the array :
5
by: Irfan Mumtaz | last post by:
hi, I had posted a question in the group "how to arrange arrays in increasing order" Although i got an answer using IComparable Interface by Harfried ,which is given below. Dim InputArray()() As...
16
by: Gerrit | last post by:
Hello, Is it possible to sort an array with a struct in it? example: I have a struct: public struct mp3file { public int tracknr;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.