Written by:R Teachout11/22/2006 5:42 PM
Found this code on netnerds.com and wanted to bookmark it… she got it from VisualBasicScript.com’s ForumsFunction fSortArray(aSortThisArray)Dim oArrayList, iElement, oArrayDicSet oArrayDic = CreateObject("Scripting.Dictionary")Set oArrayList = CreateObject( "System.Collections.ArrayList" )For iElement = 0 To UBound(aSortThisArray) oArrayList.Add aSortThisArray(iElement)NextoArrayList.Sortset fSortArray = oArrayListEnd Function
Found this code on netnerds.com and wanted to bookmark it… she got it from VisualBasicScript.com’s Forums
Function fSortArray(aSortThisArray)Dim oArrayList, iElement, oArrayDicSet oArrayDic = CreateObject("Scripting.Dictionary")Set oArrayList = CreateObject( "System.Collections.ArrayList" )For iElement = 0 To UBound(aSortThisArray) oArrayList.Add aSortThisArray(iElement)NextoArrayList.Sortset fSortArray = oArrayListEnd Function