Hello,
I am getting "Overload resolution failed because no accessible 'Sort' accepts this number of arguments" with the code below
Will be thankful for any feedback...
Code:Dim temp As Integer() = {8, 4, 5, 3, 1, 6, 9, 7, 2, 1, 4}
temp.Sort()
Printable View
Hello,
I am getting "Overload resolution failed because no accessible 'Sort' accepts this number of arguments" with the code below
Will be thankful for any feedback...
Code:Dim temp As Integer() = {8, 4, 5, 3, 1, 6, 9, 7, 2, 1, 4}
temp.Sort()
You don't sort an array like that. Array.Sort is a Shared method and you use it like this:If you try to use a method and it doesn't work the first thing you should do every time is go to the MSDN documentation for that method and read it. Quite often the problem will be obvious, as it would in this case.vb.net Code:
Array.Sort(temp)
You are right, JMC..
Many thanks indeed...