Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to sort a collection
Message
From
03/02/2012 10:49:49
 
 
To
03/02/2012 10:32:43
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01534397
Message ID:
01534400
Views:
51
This seems to do the trick:
            ' Sort the toolbar
            For lnCounter = 1 To oToolbar.Count

                ' For each toolbar
                For Each loObject In oToolbar

                    ' If this is equal to our actual position
                    If lnCounter = loObject(2) Then

                        ' Add this item in the new collection
                        oToolbarSorted.Add(loObject)

                    End If

                Next

            Next
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform