Array.Sort not working

Will21

New member
Joined
Nov 4, 2005
Messages
3
Programming Experience
1-3
Currently learning VB.net at uni and am really getting into it.

I've been playing around with arrays but when I tried the Array.Sort function I get a build error thats says

Sort is not a member of Array.

and the Intellisence facility says that after (Array.) my only option is the name of the form (frmMain).

Any ideas on whats going on?

Thanks
 
It sounds like you've got a clash of names. Have you named your project "Array"? If so, that would take precedence, so if you just type "Array" the IDE assumes that you mean the default namespace for the project, not the System.Array class. It's always a good idea to name your projects like "ArrayTest" or something like that in this type of situation. You can fix this in one of two ways. You can either change the name of the default namespace for the project, which you would do from the Property Pages for the project, or you can simply qualify the name with its namespace so that the IDE knows you mean the System.Array class and not the Array namespace.
 
Back
Top