Message 1 of 3

Not applicable
03-21-2017
08:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi folks,
Im writing some code and found on google some VB.net sorting code but when i try to use it gives me an error.
ERROR: sort is not declared. The item may not be accessible as a result of the associated security level
anyone who knows what this means, what im i doing wrong?
my code:
SyntaxEditor Code Snippet
Dim MyArrayList As New ArrayList MyArrayList.add(X_Afstand_1_Ruit) MyArrayList.add(X_Afstand_2_Ruit) MyArrayList.add(X_Afstand_3_Ruit) MyArrayList.add(X_Afstand_4_Ruit) Sort(MyArrayList) For Each Str As Double In MyArrayList MsgBox(Str) Next
Or if you have a better code for sorting values please tell me.
The thing is i always want the middle 2 values from the list no matter what but they need to be in order. Because i want to use them in mathformulas
Thanks in advance
Solved! Go to Solution.